Exporting a MySQL Database from cPanel Print

  • 2

 

Exporting a MySQL Database from cPanel

You can easily export a MySQL database using phpMyAdmin in your cPanel account. This is useful for creating a backup or transferring data to another server.

  1. Log in to your cPanel.
  2. Go to the Databases section and click on phpMyAdmin.

Access phpMyAdmin

 

Select the database and export

From the left panel, select the database you want to export.

Then click on the Export tab from the top menu.

phpMyAdmin Export Tab

 

Export method and format

In the export panel, keep the default settings:

  • Method: Quick
  • Format: SQL

Quick SQL Export

Click Go to download the .sql file containing your database backup.

 

Importing a MySQL Database via cPanel

If you have a .sql backup file, you can import it into your database via phpMyAdmin using the steps below.

  1. Log in to your cPanel.
  2. Click on phpMyAdmin under the Databases section.

Access phpMyAdmin

 

Select the database and upload file

From the left sidebar, choose the database you want to import into.

Click on the Import tab from the top menu.

Import database

Click Browse and select your .sql file from your device.

Select SQL file

 

Confirm settings and start import

Ensure the default settings are correct:

  • Character set: utf8
  • Format: SQL

When ready, click Go to begin the import process.

Start SQL Import

Once complete, you will see a success message.

 

Important note about character sets

If you're importing to the same server or hosting provider, the character set should already be compatible. However, when migrating between different providers, it's recommended to check charset compatibility to avoid encoding issues.

 


Was this answer helpful?

« Back