How to Import and Export Databases Using phpMyAdmin in cPanel

74 views
Short answer: In phpMyAdmin, select your target database and click 'Export' > 'Quick' > 'Go' to save a .sql file; switch to 'Import' to restore an existing dump with one click.

Export database backups in compressed SQL format and import dumps into cPanel MySQL databases using phpMyAdmin.

Before you start: Back up your site files and database and download the backup to your own computer. How to take a full backup

Quick reference

Tool Location cPanel > Databases > phpMyAdmin
Export Method Quick - display only minimal options (Format: SQL)
Compression Option gzipped (.sql.gz) for fast, lightweight downloads

Steps

  1. Open phpMyAdmin: In cPanel, click phpMyAdmin under Databases.
  2. Exporting a Database:
    • Click the database name on the left sidebar.
    • Click the Export tab in the top navigation bar.
    • Choose Quick export method and format SQL. Click Export to download the .sql file.
  3. Importing a Database:
    • Select your target database from the left sidebar.
    • Click the Import tab.
    • Click Choose File and select your .sql or .sql.gz dump file.
    • Scroll down and click Import. A green success banner will confirm completion.

Fast Database Export & Import via CLI

# Export the database with mysqldump
mysqldump -u DB_USER -p DB_NAME > backup.sql

# Import a large database without the web upload size limit
mysql -u DB_USER -p DB_NAME < backup.sql

Troubleshooting and tips

  • Timeout on Large SQL Dumps: If the browser times out during import, compress the file into .sql.gz before uploading, or import via cPanel Terminal using the command mysql -u user -p dbname < file.sql.
Need more help? If you run into an error while following these steps, open a ticket with technical support and our team will look into it. Open a ticket
Was this article helpful?
No, I need more help
Didn't find your answer?
Under 3 minutes
Submit Support Ticket