2

I have 6 tables already created, which I access from mySQL Workbench. Is there any way I can get the query for the creation of the database and all 6 tables inside it? I need this so that I can create that database and all 6 tables on it, on another computer simply by double clicking an sql file. Thanks in advance :)

5

1 Answer 1

2

If you want to get SQL File from MYSQL Workbench, you need to do this :

  1. Open your model.
  2. Click Database menu and choose Forward Engineer.
  3. And click next until you show like picture below,
  4. Save to file.. enter image description here
Sign up to request clarification or add additional context in comments.

3 Comments

Where is forward engineer? I only see reverse engineer.
@EkoJunaidiSalam 6.3.3.0 and I'm on Mac OSX
@EkoJunaidiSalam Thanks! I didn't create the model, that's why. I created it, forward engineered, and now I have the sql file. Thanks very much. By the way, I have to create the connection manually though on my other computer right?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.