MySQL Workbench Manual  /  ...  /  SQL Data Export and Import Wizard

6.5.2 SQL Data Export and Import Wizard

Use this wizard to either export or import SQL generated from MySQL Workbench or with the mysqldump command.

Access these wizards from either the Navigator area of the sidebar, or by selecting Server from the main menu, and then either Data Import or Data Export.


This wizard only exports/imports the MySQL SQL format. For an overview of the data export and import options in MySQL Workbench, see Section 6.5, “Data Export and Import”.

Data Export

This tab allows you to export your MySQL data. Select each schema you want to export, optionally choose specific schema objects/tables from each schema, and generate the export. Configuration options include exporting to a project folder or self-contained SQL file, optionally dump stored routines and events, or skip table data.


Alternatively, use Export a Result Set to export a specific result set in the SQL editor to another format such as CSV, JSON, HTML, and XML.

Select the schema objects to export and then configure the related options. The figure that follows shows the sakila database ready for export.


Click Refresh to load the current objects.

Figure 6.19 Navigator Administration: Data Export: Object Selection

Content is described in the surrounding text.

Optionally open the Advanced Options tab that allows you to refine the export operation. The next figure shows an example that adds table locks, uses replace instead of insert statements, quotes identifiers with backtick characters, and so on.

Figure 6.20 Navigator Administration: Data Export: Advanced Options

Content is described in the surrounding text.

Click Start Export to begin the export process. As the next figure shows, status information indicates when the export is finished.

Figure 6.21 Navigator Administration: Data Export: Export Progress

Content is described in the surrounding text.

This functionality uses the mysqldump command.

Data Import/Restore

Restore exported data from the Data Export operation, or from other exported data from the mysqldump command.

Choose the project folder or self-contained SQL file, choose the schema that the data will be imported to, or choose New to define a new schema. The following figure shows an example of an import from a dump project folder.

Figure 6.22 Navigator Administration: Data Import: Import From Disk

Content is described in the surrounding text.


You may only select specific data objects (tables) to import if the data export operation used project folders instead of a self-contained SQL file.

Click Start Import to begin the import process. Use the Import Progress tab to monitor the progress. Status information indicates when the import is finished and displays the log.