0

I have a script file that has a bunch of create commands, and one that has a bunch of inserts. I would like to use these commands to rebuild my database on a different PC but I am struggling with how to accomplish this.

I just installed a fresh copy of MySQL Workbench and I created a new Model. Now what?!

Thanks for the help!

3
  • What is the format of the script? You should be able to just open the script file and then run the script as a query. Commented May 6, 2014 at 20:07
  • It is a .sql extension. So I should connect to the database and then in the query window I can copy/paste the code? Commented May 6, 2014 at 20:08
  • Yes, connect to the DB, load the file via either copy/paste or open it as a file, then run query. I'll post an answer with screenshots. Commented May 6, 2014 at 20:10

1 Answer 1

1

You should be able to rebuild your tables from the script

First, connect to the database

Connect to database

Then, open your script file

Open the script

Run the query

Run the query

After that, you should have your tables restored.

Sign up to request clarification or add additional context in comments.

Comments

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.