How to back up a MySQL database in cPanel

December 18, 2019 / cPanel & WHM

Backing up a MySQL database is essential when exporting data, migrating a website, or protecting your information against data loss. cPanel provides multiple ways to back up a database, including built-in backup tools and manual export options.

Below are two reliable methods to back up a MySQL database in cPanel.

Method 1: Back Up a MySQL Database Using Backup Wizard (Recommended)

The Backup Wizard is cPanel’s built-in tool and the safest option for most users.

  1. Log in to your cPanel account.
  2. Navigate to the Files section and click Backup Wizard.
    files
  3. Click Backup.
    backup wizard
  4. Select Partial Backup.
    select partial backup
  5. Choose Databases.
  6. Click the database you want to back up.
    backup wizard
  7. The database backup will be generated and downloaded to your local computer.

Save the downloaded file in a secure location. This backup can be used later to restore the database or migrate it to another hosting account.

Method 2: Back Up a MySQL Database Using phpMyAdmin

This method allows you to manually export a database.

  1. Log in to your cPanel account.
  2. Scroll to the Databases section and click phpMyAdmin.
    phpmyadmin
  3. From the left-hand panel, select the database you want to back up.
    phpmyadmin
  4. Click the Export tab at the top.
    export
  5. Choose the Quick export method.
  6. Keep the format set to SQL and click Go.
    exporting tables
  7. The database will be downloaded to your local system. Once the download is complete, store the file securely for future use.

The simplest and suggested method for backing up a MySQL database in cPanel, particularly for novices, is to use the Backup Wizard. However, if you require greater control over database exports, phpMyAdmin offers a helpful manual substitute.
This is how a MySQL database in cPanel may be reliably backed up.

Spread the love