Move a database between accounts or save a copy before editing a hosted application.
Before you start
Check which database the site uses, and take a current backup. Importing into a live database can replace tables or data.
What to do
- Open phpMyAdmin in cPanel and select the intended database.
- To export, use Export and save the SQL file privately.
- To import, choose the intended target, preferably a separate database for testing, then use Import to select the backup.
- Review import errors before switching an application to the imported data.
Check that it worked
Compare the expected tables and test the application against the restored data before switching live traffic.
If it does not work
If the upload size or timeout prevents an import, ask support about large database restores. Do not publish SQL backups in your document root.