How to Backup & Restore a MySQL Database in cPanel

Views: 468
2 0
Read Time:2 Minute, 5 Second

You already know how important the information stored in your MySQL databases is. If that data gets lost, it can be difficult to recover from. This is where preventative measures, like creating a backup of your MySQL database, come in. Luckily, with cPanel, keeping copies of your data is a simple task. By maintaining consistent backups, you can minimize the risk of data loss turning into something catastrophic.

In this tutorial, we’ll cover how to backup your MySQL database and then restore it using cPanel’s Backup tool. By following this guide, you can rest assured knowing your information is safe and sound, stored away for future use.


How to Backup a MySQL Database Using cPanel

To backup your MySQL databases please do the following:

  1. First, log in to your cPanel using your username and password
  2. Once in cPanel, search or navigate to the Files section and locate the Backups tool

    Files section of cPanel showing the Backup tool

  3. Under Download a MySQL Database Backup, click the name of the database you’d like to backup

    Download a MySQL Database Backup window showing databases available for backup

  4. Click Save As to download a zip file of your database, then select a destination where you’d like the backup to be saved locally

Once your backup has been created, if you ever inadvertently lose your data, you can restore the database quickly and easily using the file you’ve created.


How to Restore a MySQL Database Using cPanel

To restore your MySQL databases, please do the following:

  1. First, if you haven’t already, log in to your cPanel using your username and password
  2. Locate and select the Backups tool from within the Files section

    Files section of cPanel showing the Backup tool

  3. Next, in the window titled Restore a MySQL Database, click the Browse button

    Restore a MySQL Database window showing an empty form field and the "Browse" button

  4. Navigate to the folder where you saved your database’s backup file and select the .sql.gz file which you want restored

    File Upload window highlighting the desired database backup file that is to be restored

  5. Click the Open button and then click on Upload

Now your MySQL database should be restored from your last saved version and your database driven website should be back up and running again.


Popular Links

Looking for more information on cPanel? Search our Knowledge Base!

Interested in more articles about Control Panels? Navigate to our Categories page using the bar on the left or check out these popular articles:

  • How to Fix Invalid cPanel License Error When the IP is In Fact Licensed
  • How to Increase PHP Upload Limit on a cPanel Server
  • How to Add a Subdomain in Plesk 12

Popular tags within this category include: cPanel, WHM, Plesk, DirectAdmin, and more.

Leave a Reply