Loading...

Knowledge Base

How to Backup and Restore a MySQL Database

Creating a Backup of a MySQL Database via the phpMyAdmin Export Method

You can download a backup of your MySQL database by exporting its .sql file via the phpMyAdmin.

Here are the steps to export your MySQL database.

  1. Log in to your Account Manager.
  2. Click Hosting in the left-hand menu.

    Account Manager - Hosting tab

  3. Navigate to the hosting plan where your database is.

    If your account has multiple hosting plans, click the Manage button of the hosting plan where your database is located.

    Manage button

  4. In the left pane, click on MySQL Management.

    MySQL Management

  5. Look for the database you want to export to and click its Manage button.

    Database - Manage button

  6. On the Database Management page, click the phpMyAdmin link.

    Database Management - phpMyAdmin link

  7. With the database selected in the left pane, click the Export tab in the top menu.

    phpMyAdmin - Export button

  8. Select Quick as the Export method.

    Export method - Quick

  9. Select SQL from the Format drop-down menu.

    Format - SQL

  10. Click the Go button to initiate the download/export process.

Your database will be downloaded into your computer as a .sql file.

 

Restoring a MySQL Database via the phpMyAdmin Import Method

To export your MySQL database.

  1. Log in to your Account Manager.
  2. Click Hosting in the left-hand menu.

    Account Manager - Hosting tab

  3. Navigate to the hosting plan where your database is.

    If your account has multiple hosting plans, click the Manage button of the hosting plan where your database is located.

    Manage button

  4. In the left pane, click on MySQL Management.

    MySQL Management

  5. On the MySQL Management page, click + Add MySQL Database.

    MySQL Management - Add MySQL Database

  6. Enter a name for your database, then click Next.

    MySQL Management - Enter database name

  7. Type your database username and password, then click on Save.

    MySQL Management - Enter username and password

  8. In the next pop-up, set the database privileges.

    MySQL Management - Set privileges

  9. On the Database Management page, click the phpMyAdmin link.

    Database Management - phpMyAdmin link

  10. With the database selected in the left pane, click the Import tab in the top menu.

    phpMyAdmin - Import button

  11. Click the Choose File button and select the database file you want to import.

    phpMyAdmin - Import button - Choose File

  12. Scroll down and click the Go button.
  13. Once your database is finished importing, you will see that your new database is now populated with your imported database information.

 

Loading...