Select Import from Self-Contained File and enter the location in the File Path text field.Ĭlick Start Import in the bottom right and enter the database password if prompted. This process may take several minutes depending on the size of your database backup. Select which tables from the backup you would like to restore. Select Import from Dump Project Folder and enter the location in the Folder Path text field. This step will differ depending on which option you chose. When you created the backup you were presented with the option to export your database tables to a folder or a single self-contained file. Select the database you want to import data in to.Įnter your database password if prompted. Restore your database from a previous backup (Import) Step 1 Export to Self-Contained File: All selected tables will be exported to one single SQL file.Ĭlick Start Export and enter the database password if prompted.Export to Dump Project Folder: MySQL Workbench will create a separate backup file for each table in your database, which will make it possible to store selected tables in the future without the need to restore the entire database.However, Export to Self-Contained File is more commonly used for most Fasthosts customers: There are two options available and you can use either. Step 3įrom the right hand pane, select the tables that you want to include in your export.Ĭhoose where you would like to save your database backup. In the left pane, select your database by ticking the checkbox next to it.Įnter your database password if prompted. This is also sometimes referred to as a data dump. MySQL Workbench can export a backup of your database to a file on your local computer. These links will take you to the relevant instructions: Once connected you will be able to backup or restore your database. Define your server connectionīefore you begin you need to add a connection to the database server. You can find more information and download the software from. To backup your database using the methods described in this article you will need to have a copy of MySQL Workbench, an application developed by the producers of MySQL. This would generate a dump file in the folder specified.We strongly recommend that you create regular backups of your database so it can be easily and quickly recovered in the unlikely event that your data is lost or becomes corrupted. To generate a dump using this method, please ensure to open a "command prompt (cmd)" window and not the MySQL command-line client.Ī simple example of a db dump is mysqldump -u root -p sakila > C:\dumps\sakila_dump.sql We have a lot of options for using this command. We can also use the command prompt to generate a database dump. We can then use the generated dump file or files to create a new database. Once we select all the required options, we can click on the Start Export button, which will generate our database dump file or files based on the options we have selected. We can also select the folder in which the dump file will be generated. Figure 6.11 Table Data Wizards: Open Table Data Export Wizard Export table data to either a JSON or CSV file.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |