HostMonster Web Hosting Help

MySQL Database Restore

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 Restore tab.
  3. Select "MySQL Database" option.
  4. Select the desired archive date.
  5. Select the desired database.
  6. Click "Restore" 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 import the backup from the drop-down list.
  3. Click on the Import tab.
  4. Click the "Choose File" button.
  5. Click the "Go" button.
    Note: 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

Use the command line in SSH. Please see the separate Helpdesk article here.

         mysql -p -u username database_name < file.sql 
         

Note: 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 150,808 views bookmark tags: admin database mysql php phpmyadmin restore (updated 1023 days ago)


Was this resource helpful?

Did this resolve your issue?


Please add any other comments or suggestions about this content:





Recommended Help Content

A repository of information on how you can manage your database by using the phpMyAdmin interface. (updated 835 days ago)
Knowledgebase Article 144,117 views tags: commands database mysql phpmyadmin

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

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

Related Help Content

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

A guide to duplicating a MySQL database using phpMyAdmin (updated 836 days ago)
Knowledgebase Article 29,058 views tags: databases mysql phpmyadmin

A tutorial on how to perminately delete columns from your mySQL database using phpMyAdmin (updated 834 days ago)
Knowledgebase Article 35,331 views tags: Plesk cpanel databases mysql phpmyadmin

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

Guidance on adding tables to your mySQL database in phpMyAdmin (updated 835 days ago)
Knowledgebase Article 13,779 views tags: mysql phpmyadmin

Step by step directions on how you can search your database using phpMyAdmin (updated 836 days ago)
Knowledgebase Article 11,937 views tags: Plesk cpanel databases mysql phpmyadmin

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

How do I import a database using command line? (SSH) (updated 1016 days ago)
Knowledgebase Article 385,539 views tags: command database import line mysql phpmyadmin ssh