Importing a database dump or backup
A database dump is a file (usually .sql) with the contents of a database, for example a backup or an export from another hosting provider. You import it via your control panel, via phpMyAdmin or via SSH. We recommend the control panel.
Before you start
The database you import into must already exist. If it does not, create it first (see Creating a new database).
Enter a domain name, such as yourdomain.nl.
This value doesn’t fit here. An example: whs1.
Via the control panel (recommended)
Web Hosting (DirectAdmin)
Also for Reseller Hosting.
- Log in to DirectAdmin via Single Sign-On from Mijn xYnta, or at
https://yourdomain.nl:2222. - Under Account Manager, click Databases.
- In the row of the database, click Manage.
- Under Database Operations, click Import and choose the
.sqlfile on your computer. - DirectAdmin asks Proceed with … import? Tick Clean database there if all existing contents must be removed first. We recommend this for a full backup.
- Click YES. NO cancels the import.
After the import, DirectAdmin reports Database Import Finished. For a large database this can take a few minutes.

WordPress Hosting (Plesk)
- Log in to Plesk at
https://whs1.srvnl.nl:8443. You can find your server name in How can I find the server name of my hosting package? - Click Databases in the menu on the left.
- Under the name of the database, click Import dump.
- Leave Upload a dump from your local computer selected, click Choose file... and choose the dump on your computer. If the dump is already on your hosting package, choose Import a dump stored on your hosting server.
- Recreate the database is switched on by default: Plesk then empties the database first. If you untick it, the tables that do not appear in the dump are kept. A table that is in the dump is replaced if the dump removes it first (
DROP TABLE). - Click Import Dump.
After the import, Plesk reports at the bottom right that the dump has been imported. For a large database this can take a few minutes.
Via phpMyAdmin
Web Hosting (DirectAdmin)
Also for Reseller Hosting.
- Log in to DirectAdmin via Single Sign-On from Mijn xYnta, or at
https://yourdomain.nl:2222. - Under Account Manager, click Databases.
- In the row of the database, click Manage.
- Click PHPMYADMIN at the top.
- In phpMyAdmin, click the name of the database on the left.
- Click the Import tab at the top.
- Under Browse your computer:, choose the
.sqlfile. - Click Import at the bottom.
WordPress Hosting (Plesk)
- Log in to Plesk at
https://whs1.srvnl.nl:8443. - Click Databases in the menu on the left.
- Under the name of the database, click phpMyAdmin.
- Click the Import tab at the top.
- Under Browse your computer:, choose the
.sqlfile. - Click Import at the bottom.
Via SSH
For Web Hosting and Reseller Hosting.
Put the dump on your hosting package
Upload the
.sqlfile to the main folder of your hosting package, via FTP (see FTP settings) or via Managing files.Make an SSH connection
Connect to your hosting package via SSH (see Connecting via SSH).
Run the import command
Type this command and press Enter:
mysql -u databaseuser -p databasename < backup.sqlReplace
databaseuserwith the name of the database user,databasenamewith the name of the database andbackup.sqlwith the name of your file.Enter the password
Enter the password of the database user and press Enter. The import starts; for a large database this takes a few minutes.
Video


Related articles
Thank you for your feedback.

