Database Backup and Restore
There are many reasons that can cause data loss. These are, for example, an operating system crash, power failure, hardware problem and many others. So it is necessary to back up databases periodically. With dbForge Studio for MySQL you can perform database backup easily using Database Backup Wizard. dbForge Studio backs a database up into a simple SQL script. You can read and correct this script.
With dbForge Studio, you can perform full database backup or restoring only selected database objects. To call Database Backup Wizard, select Backup Database… on the Database menu or on the shortcut menu of the database node of the Database Explorer window.
Backing Up an Entire Database
- Select a database to back up, backup script file name and location, click Next.
- Select Structure and Data, check Include all objects, click the Next button.
- Set the backup options, click the Backup button.
- Choose whether to open the backup script file in SQL Editor and whether to save the backup project for future use, and click the Finish button.
Backing Up Certain Database Objects
- Choose a database to backup, script file name and location, click the Next button.
- Select required information to backup.
- Select database objects to backup their structure if you have chosen Structure or Data to back up on the Backup Content page, click the Next button.
- Select tables to back up their data if you have chosen Data or Structure to back up on the Backup Content page, click the Next button.
- Set backup options, click the Backup button.
- Choose whether to open the backup script file in SQL Editor and whether to save the backup project for future use, and click the Finish button.
Restoring Database from Backup Script
To call Database Restore Wizard and restore the database from the backup script:
- Select Restore Database… on the Database menu or on the shortcut menu of a database node of the Database Explorer window.
- Select backup script file to restore and target database. If backup script file contains the CREATE DATABASE statement, backup data will be restored to the created database instead of the selected database.
- Check that the encoding for the restored file is selected correctly. The program automatically selects it based on the restored file, if it fails, the default encoding (the current Windows encoding on the machine where dbForge Studio is running) is selected. You can always select a required encoding from the drop-down list.
- Click the Restore button.
Note
If you backup and restore database in different MySQL versions, you may encounter errors.
Also, you may find the Backing Up All MySQL Server Databases or Only the Required Ones article interesting.
Want to Find out More?
Take a quick tour to learn all about the key benefits delivered by dbForge Studio for MySQL.
Get acquainted with the rich features and capabilities of the Studio in less than 5 minutes.
If you consider employing the Studio for your business, request a demo to see it in action.
Ready to start using dbForge Studio for MySQL?