Import, export and migrate a database
Newer DirectAdmin version
- Click Manage next to the database.
- Under Database Operations, use Import, Export as SQL or Export as GZ.
- The same page also provides Check, Repair and Optimize.
Older DirectAdmin version
- In MySQL Management, click Upload Backup.
- Select the destination database and file. The form shows the current maximum file size.
- Normally use Your current login information; choose a custom username and password only when required.
- Create exports through Extra Features → phpMyAdmin → Export.
Alternative through phpMyAdmin
Both versions can use phpMyAdmin. A quick SQL export is sufficient for a normal complete copy; use gzip for a larger database. For an import, first select the correct empty database and then choose the .sql or supported compressed file.
Large file or timeout
phpMyAdmin is limited by upload size and processing time. Do not split a dump in the middle of an SQL statement. Contact support with the destination database name and file size, or use an agreed SSH procedure.
Checks after migration
- compare table count and approximate size,
- verify
utf8mb4encoding and collation, - test login, checkout or a form write,
- verify source and destination MySQL/MariaDB version compatibility.