Bluehost Web Hosting Help
How to Backup a MySQL Database
There are three options available to backup your MySQL databases
Using Site Backup & Restore
- Select "Site Backup & Restore" from the Files category, after logging into cPanel.
- Click the "Browse" link next to Databases.
- Select the desired archive date.
- Select the desired database.
- Click "download zip"
- Login to your cPanel and click phpMyAdmin icon in Databases section.
- Select the database you wish to backup the list on the right.
- Click on the "Export" Tab.
- Click the "GO" button.
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.
Recommended Help Content
Backup all MySQL databases using the Site Backup & Restore tool
How to backup all of your MySQL databases using the Site Backup & Restore tool
Restore MySQL databases using the Site Backup & Restore tool
How to restore MySQL databases using the Site Backup & Restore tool
How to Create and Delete MySQL Databases and Users
This article will explain MySQL database and user creation and deletion, and explain how to assign a user to a database.
Related Help Content
Import a MySQL Database using phpMyAdmin
How do I import a backup of my database (.sql file) using phpMyAdmin?
MySQL Database Compatibility
How do I make my MySQL database compatible with the version you provide?
How To Reset MySQL Database User & Password
This article will explain how to change the password for a database in the event that the original password is lost.
Connecting to your MySQL DB from Dreamweaver
How can I connect to our MySQL database from Dreamweaver?
MySQL Database Restore
How to Restore your MySQL Database?
Setting a Password for the Main MySQL User
I am prompted to set a new MySQL password. What does this mean and how do I change it?
MySQL Repair and Optimize Tables in phpMyAdmin
How to repair and optimize your database using phpMyAdmin:
Connecting Scripts to MySQL Databases
This article will explain how to connect your scripts to your MySQL databases.