Create a backup using MySQL Workbench
- Connect to your MySQL database.
- Click Server on the main tool bar.
- Select Data Export.
- Select the tables you want to back up.
- Under Export Options, select where you want your dump saved. By default, it will save to your Documents folder in a subfolder titled dumps.
- Click Start Export.
Note:
You may get a message about a mismatch between your mysqldump.exe version and the MySQL Server version. You can update your local MySQL version or continue.
7. You now have a backup version of your site. Store this content securely in a manner consistent with your MySQL schema content's data classification.
Load a MySQL dump from MySQL Workbench
To load a MySQL dump file after a database failure or corruption:
- Connect to your MySQL database.
- Click Server on the main tool bar.
- Select Data Import.
- You should see a link to the default dump folder, typically your Documents folder in a subfolder titled dumps.
- Click the ... and navigate to where your MySQL backup file is located, select the backup you want to load, and click OK.
- The schema names in your dump should appear on the left-hand side, at the bottom. Select the schemas that need to be restored.
- Select Start Import on the bottom right.
#viastudy
0 Comments