I am currently working on a Windows application with a MySQL backend.
Now I want to copy the old database structure and data to a new database server.
How can I solve this problem using MySQL workbench?
Thank you!
- Open MySQL Workbench
- Create the old server's connection (if you haven't it)
- Create the new server's connection (if you haven't it)
- Go to Server Administration and click Manage Import / Export
- Select old server
- Select all schemas in Export to Disk tab
- In options select Export to Self-Contained File, wait until it finished
- Back to Server Administration and click Manage Import / Export
- Select new server
- Switch to "Import from Disk"
- Click "import from Self-contained File
This is the way with only MySQL Workbech, some times you haven't it installed in new server, like in development to production scenario, in this way you should execute the mysqlimport utility.