

In most cases, importing is just a matter of passing virtually identical options to the mysqlimport command.
#MYSQL BACKUP DATABASE WORKBENCH HOW TO#
Now that you’ve learned how to export a backup of a MySQL database, we’ll explore how to reverse the process and import the backup into an existing database.Īs you might imagine, to compliment the mysqldump command used for exporting, there is a similar mysqlimport command for importing. If you need the ability to export (and later recreate) one more more databases, read up on the -databases flag in the official documentation. Instead, by default, only actual tables (and their respective data) are saved and thus will be prepared for later import using this file. The Import/Export Wizard in SSMS may be able to help you if you have the appropriate drivers, otherwise youll be writing your own ETL process in your language/environment of choice. sql suffix (which is completely optional but advisable) in the appropriate directory.īy default, mysqldump will not save commands which attempt to modify the existence of the actual database. You will need to restore your SQL Server backup into an instance of SQL Server, then export the data from SQL Server into MySQL. In this example, the database is named bitnamiapp replace this with the.

$ mysqldump -u book_admin -p books > ~/backup/database/books.sqlĪfter entering our password when prompted above, this command then creates our backup file with a. To back up just the application database, create a dump file using the mysqldump tool.
