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. Select "MySQL Database (Individual)" option.
  3. Select the desired archive date.
  4. Select the desired database.
  5. Click "Download file" option on the right, or from the interactive mouse-over menu.

Using phpMyAdmin

  1. Login to your cPanel and click phpMyAdmin icon in Databases section.
  2. Select the database you wish to export the backup from the drop-down list.
  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 156,530 views bookmark tags: backup database mysql (updated 485 days ago)


Was this resource helpful?

Did this resolve your issue?


Please add any other comments or suggestions about this content:





Recommended Help Content

Site Backup & Restore tool displays unexpected dates. (updated 1540 days ago)
Knowledgebase Article 44,501 views tags: backup database dump mysql restore sql

How to backup all of your MySQL databases using the Site Backup & Restore tool (updated 1482 days ago)
Knowledgebase Article 61,459 views tags: backup database mysql restore site

How to restore MySQL databases using the Site Backup & Restore tool (updated 1121 days ago)
Knowledgebase Article 60,282 views tags: backup database mysql restore site

Related Help Content

How to restore MySQL databases using the Site Backup & Restore tool (updated 1348 days ago)
Knowledgebase Article 48,324 views tags: backup database mysql restore site

An exported .sql file shows as a different size than the reported size in cPanel (updated 1540 days ago)
Knowledgebase Article 25,674 views tags: backup database dump export mysql mysqldump size sql

This article will explain MySQL database and user creation and deletion, and explain how to assign a user to a database. (updated 12 days ago)
Knowledgebase Article 476,542 views tags: creation database mysql

How do I import a backup of my database (.sql file) using phpMyAdmin? (updated 121 days ago)
Knowledgebase Article 168,921 views tags: database mysql phpmyadmin

How do I make my MySQL database compatible with the version you provide? (updated 2151 days ago)
Knowledgebase Article 84,627 views tags: database mysql

This article will explain how to convert a MySQL database to UTF-8. (updated 52 days ago)
Knowledgebase Article 848 views tags: character database encoding mysql utf

This article will explain how to change the password for a database in the event that the original password is lost. (updated 947 days ago)
Knowledgebase Article 31,486 views tags: database mysql password

How can I connect to our MySQL database from Dreamweaver? (updated 1160 days ago)
Knowledgebase Article 101,340 views tags: connecting database dream mysql weaver