Your Webhosting Questions
Answered by the Webhosting Experts

How to Backup & Restore a MySQL Database in cPanel

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:

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

Don’t see what you’re looking for? Use the search bar at the top to search our entire Knowledge Base.


The Hivelocity Difference

Seeking a better Dedicated Server solution? In the market for Private Cloud or Colocation services? Check out Hivelocity’s extensive list of products for great deals and offers.

With best-in-class customer service, affordable pricing, a wide-range of fully-customizable options, and a network like no other, Hivelocity is the hosting solution you’ve been waiting for.

Unsure which of our services is best for your particular needs? Call or live chat with one of our sales agents today and see the difference Hivelocity can make for you.

Need More Personalized Help?

If you have any further issues, questions, or would like some assistance checking on this or anything else, please reach out to us from your account and provide your server credentials within the encrypted field for the best possible security and support.

If you are unable to reach your account or if you are on the go, please reach out from your valid account email to us here at: [email protected]. We are also available to you through our phone and live chat system 24/7/365.

Tags +