Create and restore MySQL database backups in cPanel Print

  • 2

Backup a MySQL database in cPanel

To download a backup of a MySQL database:

  1. Login to cPanel by going to www.yourdomain.com.au/cpanel
  2. Under Files, click Backups
  3. Under "Partial Backups > Download a MySQL Database Backup", click the database that you wish to download, and save the file to your computer
Restore a MySQL database in cPanel from a backup

If you have a backup of your MySQL database, such as one generated by the method above, and you need to restore it so that it overwrites the database currently used by your website, you can do this as follows:

  1. Login to cPanel by going to www.yourdomain.com.au/cpanel
  2. Under Databases, click phpMyAdmin
  3. On the left, click the name of the database you wish to overwrite. This should display a list of tables on the right.
  4. At the bottom, click the "Check All" link to select all tables. From the select box to its right, choose "Drop". Important: This will destroy all data in the database you have chosen. Be certain that you have selected the correct database and that you have a working backup that you are about to restore from.
  5. Up the top of the page, click the Import tab.
  6. Under "File to import", click the upload button, and browse to the MySQL database backup file on your computer. It may have a .sql, .gz or .zip extension.
  7. Click the "Go" button.

Was this answer helpful?

« Back