phpMyAdmin is a web interface for managing databases. Site owners mostly need it for two jobs: taking a copy of the database before a big change, and moving a database from one host to another.
Opening phpMyAdmin #
In the Databases section of cPanel click phpMyAdmin. It opens in a new tab without another password and lists only your account’s databases on the left. You can change its language under Appearance settings on its home page.

Part one: export (the backup) #
- Select the database on the left important: without it, phpMyAdmin exports at server level.
- Click the Export tab in the top bar.
- Keep the method Quick and the format SQL enough for most sites.
- Click Export a .sql file downloads to your computer.

Choose Custom if you want gzip compression to make the file smaller, or to export certain tables only.
Part two: import #
- Create an empty database and user in cPanel; see creating a database.
- Select the new database in phpMyAdmin in the left column.
- Click Import then Choose File and pick the .sql file.
- Leave the character set as utf-8 and click the button at the bottom of the page.
- Wait for the success message and check the tables appear under the database name.

Next to the file button you see the maximum import size on your account. A zip or gzip file is accepted and keeps the size down.
Import errors and fixes #
| Message | Meaning | Fix |
|---|---|---|
| No database selected | No database was chosen before importing | Select it on the left and import again |
| #1044 Access denied … CREATE DATABASE | The file tries to create a database under another name | Remove the CREATE DATABASE and USE lines at the top of the file |
| #1050 Table already exists | The database is not empty | Import into an empty database, or drop the old tables after a backup |
| File exceeds the maximum size | The upload limit was exceeded | Compress the file, ask support to import it, or see increasing the phpMyAdmin upload size |
wp_options table or in WordPress settings. If you forgot the admin password, see resetting a WordPress password from phpMyAdmin.Frequently asked questions #
Does exporting take my site down?
No, it only reads the data.
What is the difference between Quick and Custom?
Quick exports the whole database with default settings; Custom lets you pick tables, compression and other options.
Can I import a very large file?
If it exceeds the limit shown, compress it or contact support to import it.
Where is the .sql file after exporting?
In your computer’s downloads folder.
- Create a MySQL Database and User in cPanel: With the Wizard or by Hand
- Check and Repair a MySQL Database in cPanel When Tables Are Corrupted
- How to Increase the phpMyAdmin Upload Size on a cPanel Server
- How to Reset a WordPress Password from phpMyAdmin
- Protecting Your Website Database and phpMyAdmin: Users, Privileges and Passwords