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
- Open phpMyAdmin: In cPanel, click phpMyAdmin under Databases.
- 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
.sqlfile.
- Importing a Database:
- Select your target database from the left sidebar.
- Click the Import tab.
- Click Choose File and select your
.sqlor.sql.gzdump 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.gzbefore uploading, or import via cPanel Terminal using the commandmysql -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