Importing and Exporting a Database in cPanel

Importing and Exporting a Database in phpMyAdmin

phpMyAdmin is a web‑based tool in cPanel that lets you manage MySQL databases. Most customers use it to import a database backup into a website, or to export a database so they can keep a copy or move it to another server.

Before you begin, make sure the database you want to work with already exists in cPanel. If you still need to create one, you can follow our guide on creating a database and user in cPanel.

A warning before continuing  Before you start

You’ll need:

Taking a backup first means you can restore your data if anything doesn’t go as planned.

1. How to import a database in phpMyAdmin
  • Log in to your cPanel.
  • In cPanel Tools, open phpMyAdmin from the Databases section.

phpMyAdmin option within the database section in cPanel

In the left‑hand menu, select the database you want to import into.

The Database you want to import to

  • At the top of the page, select the Import tab

Import Database located at the top in the task bar the screen

Under File to import:

  • Select Choose File and select your database backup file you have saved

Choose a file to import

Leave the default settings unchanged unless you know you need something different.

Once you have chosen the file, scroll down to the bottom of the page: 

  • Select Import
Import conformation to begin import

 

If the import is successful, you’ll see a confirmation message in phpMyAdmin.

Helpful import tips

  • Database imports are usually .sql files.
  • Very large files may fail to upload due to server limits.
  • Always make sure you’re importing into the correct database, as importing into the wrong one can cause your site to stop working.
2. How to export a database in phpMyAdmin
  • Log in to your cPanel
  • In cPanel Tools, open phpMyAdmin from the Databases section

phpMyAdmin option within the database section in cPanel

In the left‑hand menu, select the database you want to import into.

The Database you want to import to

  • At the top of the page, select the Export tab

Export Database option on the top Tab bar

  • For most common cases Select Quick as the export method
  • Leave the format set to SQL

Export Method with Quick, using SQL format and Export highlighted

  • Select Export

Your browser will download the database file automatically.

Helpful export tips

  • Exported databases are saved as .sql files
  • You can use this file to restore your database later or move it to another server
  • For simple backups, the Quick export option is usually all you need
Need Help?

Feel free to contact our Web Hosting team.

Carbon Neutral
Phone | Zen Internet
Zen Internet - Home SalesSales
01706 902573
Phone | Zen Internet
Zen Internet - Customer EnquiriesCustomer Enquiries
01706 902001