1. bluehost knowledge base

How to Backup a MySQL Database

Summary

There are three options available to backup your MySQL databases



 

Using Site Backup & Restore


Site Backup Pro is not available to users on Rock accounts. For more information, please see Rock vs Legacy.
  1. Select "Site Backup & Restore" from the Files category, after logging into cPanel.
  2. Click the "Browse" link next to Databases.
  3. Select the desired archive date.
  4. Select the desired database.
  5. Click "download zip"

 

Using phpMyAdmin

  1. Login to your cPanel and click phpMyAdmin icon in Databases section.
  2. Select the database you wish to backup the list on the right.
  3. Click on the Export Tab.
  4. Click the GO button.
  5. You will be asked to save the .sql file to the hard drive; select the desired path, and click the OK button.

    This can take a significant period of time, depending on the size of the file being imported, the number of operations the .sql file must perform, and a number of other variables.

 

Using the Command Line

Enter the following command to export your database:

mysqldump -u username -p database_name filenamehere.sql

Please see the separate Help Desk article here.

After pressing Enter you will be prompted for your MySQL password. Enter your password and this will export a copy of the database into your specified filename.

If you need assistance with any of these procedures, please contact our Support department.