Import and Export a MySQL Database
Download a database, or load an SQL file into one
Move a database in and out
Export gives you a compressed copy of a database to download. Import loads an SQL file into a database, and puts the database back as it was if the import fails.
Where: Servers › My Servers › your server › Database tab › the buttons on a database row
01 · Export a database
- Click Export on the database.
- A window follows the work: the dump is made, then compressed into a
.sql.gzfile. - At Download Ready!, click Download File.
The download link works once, for one hour, and only from the IP address that asked for it. Need it again? Export again.
02 · Import an SQL file
- Click Import on the database you want to load into.
- Read the warning. A backup of the database is made before the import; if the import fails, the database is restored from it.
- Choose the SQL File:
.sql,.sql.gz,.sql.bz2, or a.zipwith one.sqlfile inside. Under it, the dialog shows the largest file your server accepts. - Tick I understand this may overwrite existing data and want to proceed.
- Click Import SQL. A progress bar follows the upload, then the import.
- The file goes straight to your server.
- If the file has
CREATE DATABASEorUSEstatements, its data goes into the database those statements name, not the one you clicked.
03 · Bigger files
The largest file is set by PHP on your server: post_max_size and upload_max_filesize. Raise both with a preset or by hand, see PHP configuration. The dialog reads the new limit the next time you open it.
Creating, cloning and deleting databases, and MySQL users: see Database tab.
Database tab
- Database tab
- Import and export