Import or export a database with phpMyAdmin Print

  • 0

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

  1. Open phpMyAdmin in cPanel and select the intended database.
  2. To export, use Export and save the SQL file privately.
  3. To import, choose the intended target, preferably a separate database for testing, then use Import to select the backup.
  4. 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.

Related guides


Was this answer helpful?

« Back

Powered by WHMCompleteSolution