Download an SQL copy of a database with phpMyAdmin and check what else you need for a complete website backup.
Use cPanel for the correct hosting service before opening phpMyAdmin. The screenshot excludes account details.
Identify the database you need
A database export contains the selected database’s structure and data. It does not include website files, uploads, email or the rest of the hosting account. For a complete website recovery, keep the matching website files and application configuration as well.
Confirm which database the website uses before exporting. If you inspect an application’s configuration file, keep its database password and other secrets private. Ask support or your developer if several databases have similar names.
A busy shop or booking system can change while a backup is being made. For a migration or a recovery point that must be consistent across related tables, plan the backup method and any write freeze with your developer or support.
Download an SQL export
- Open phpMyAdmin from cPanel and select the intended database in the navigation panel.
- Choose Export at database level, rather than opening an individual table first.
- For a standard export, choose Quick and SQL where those options are displayed.
- If you need to check table selection, compression or other options, use Custom. Include all required tables and both structure and data for a normal database backup. Keep advanced settings unchanged unless you understand their effect.
- Start the export using the displayed Export or Go control and save the resulting download to a secure location on your computer.
- Wait for the download to finish and check that your browser did not report a network or export error.
Running an export reads the database; you do not need to remove or empty any tables to make the download.
Check and protect the download
Check that the file exists and is not empty or an HTML error page saved as a download. Note the source website, database and export date in your private backup records.
A completed download is not proof of a usable restore. Where recovery matters, test the export by importing it into a separate empty test database using a suitable environment. Do not test the import over your live database.
Database files can contain personal information, order records, password hashes and application secrets. Keep them in protected storage, share them only through an agreed private method and remove temporary copies when they are no longer required. Never place an export in a publicly accessible website folder.
Large databases and complete backups
If phpMyAdmin times out, produces an incomplete file or cannot export a large database, contact us for a suitable method rather than assuming the partial download is a backup.
JetBackup may provide an alternative database backup download or restore point. Check its available dates and contents. An SQL export taken now and an older JetBackup snapshot represent different points in time; choose matching files and database data when planning a restore.
If you are moving a website, tell support whether it continues taking orders, bookings or form submissions so the final synchronisation can be planned.
Related help
- How to Access cPanel from Your Client Area
- How to Request a Website and Email Migration
- How to Check and Reduce Your Hosting Disk Usage
Further information: phpMyAdmin: Import and export · phpMyAdmin: Backup FAQ.
Need help? Open a support ticket with the affected domain and exact error. Never include your password.