How to Backup and Restore your mySQL database

How to Backup/Restore Your MySQL Database

  • Full Backup
  • Home Directory Backup
  • MySQL Database Backup

If you run a database driven website, it is important to backup your databases on a  periodic basis. While databases are included in a full backup, you may wish to only backup an individual database.

Backup a Database

To backup a database:

  1. Log into cPanel.
  2. In the Files section, click on the Backups icon.
  3. Under Download a MySQL Database Backup, click the name of the database you want to backup.
  4. In the pop-up that appears, select the Save File option and select a destination on your local machine where you would like the backup stored.

Once the backup is saved, you can quickly and easily restore the database if you should ever lose your data.

Restore a Database

To restore a database:
  1. Log into cPanel.
  2. In the Files section, click on the Backups icon.
  3. Under Restore a MySQL Database, click Browse.
  4. Select the .sql.gz file which you want restored.
  5. Click Open.
  6. Click Upload.

Your database will then be uploaded and the  database driven website should begin working shortly.

 
  • 3 Users Found This Useful
Was this answer helpful?

Related Articles

Backup Wizard

From within your cPanel control panel, scroll down to the "Files" section, then click "Backup...