How to Backup a MySQL Database
If you are using assistive technology and are unable to read any part of the HostMonster website, or otherwise have difficulties using the HostMonster website, please call 866-573-HOST and our customer service team will assist you.
Skip to main content

HostMonster Web Hosting Help

How to Backup a MySQL Database

Summary

There are three options available to backup your MySQL databases



Using Site Backup & Restore

  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.

Knowledgebase Article 418,683 views bookmark tags: backup database mysql


Was this resource helpful?

Did this resolve your issue?


Please add any other comments or suggestions about this content:





Recommended Help Content

How to backup all of your MySQL databases using the Site Backup & Restore tool
Knowledgebase Article 271,377 views tags: backup database mysql restore site

How to restore MySQL databases using the Site Backup & Restore tool
Knowledgebase Article 257,662 views tags: backup database mysql restore site

This article will explain MySQL database and user creation and deletion, and explain how to assign a user to a database.
Knowledgebase Article 873,631 views tags: creation database mysql

Related Help Content

How do I import a backup of my database (.sql file) using phpMyAdmin?
Knowledgebase Article 781,575 views tags: database mysql phpmyadmin

How do I make my MySQL database compatible with the version you provide?
Knowledgebase Article 245,378 views tags: compatible database mysql

This article will explain how to change the password for a database in the event that the original password is lost.
Knowledgebase Article 263,677 views tags: database mysql password

How can I connect to our MySQL database from Dreamweaver?
Knowledgebase Article 270,969 views tags: connecting database dream mysql weaver

How to Restore your MySQL Database?
Knowledgebase Article 383,811 views tags: admin database mysql php phpmyadmin restore

I am prompted to set a new MySQL password. What does this mean and how do I change it?
Knowledgebase Article 249,342 views tags: connect database mysql password phpmyadmin username

How to repair and optimize your database using phpMyAdmin:
Knowledgebase Article 441,892 views tags: database mysql optimizing repairing slow speed

This article will explain how to connect your scripts to your MySQL databases.
Knowledgebase Article 237,108 views tags: database mysql scripts

This site utilizes JavaScript to function correctly. Looks like it's disabled on your browser. Please enable it for your best experience.

For instructions on enabling JavaScript, click here