Real people, 24/7(800) 395-7779

How to Import or Restore a Database (MSSQL or MySQL) in Plesk Print

  • Plesk, databases, restore database
  • 0

You can load a database backup (dump) into a database on your Windows (Plesk) hosting yourself, whether it came from another host, your own computer or an earlier export. This works for both Microsoft SQL Server (MSSQL) and MySQL/MariaDB databases.

Warning: Importing into an existing database can overwrite its tables. Export the current database first (Export Dump) if you might need it.

Supported files:

  • MSSQL: a SQL Server backup file (.bak), optionally zipped. A .bak made on a newer SQL Server version than ours (2017/2019) cannot be restored.
  • MySQL/MariaDB: a .sql file, or a .zip containing one.
  • Very large files can be uploaded by FTP first and then selected from your hosting space.

Step-by-Step Guide:

  1. Create the database (if needed):

    • Log in to Plesk and click Databases. If the database does not exist yet, click Add Database, choose the right database server (Microsoft SQL Server or MariaDB/MySQL) and create a database user.
  2. Start the import:

    • Next to the database, click Import Dump.

    Import Dump

  3. Choose the file:

    • Select Upload and browse to the file on your computer, or pick a file you already uploaded to your hosting space.
    • Click OK and wait. Large databases can take several minutes.
  4. Check the result:

    • Open the database in myLittleAdmin (MSSQL) or phpMyAdmin (MySQL) and confirm the tables and data are there.
    • If your database users changed, update the connection string in your web.config or application settings.

Troubleshooting:

  • Restore of a .bak fails with a version error: The backup was made on a newer SQL Server version. Ask the source to export a script or BACPAC, or contact us.
  • The file is too large: Open a ticket and we can help restore it.
  • For MSSQL you can also restore with SQL Server Management Studio: How to Access Your MSSQL Databases Remotely.

Need help? Open a ticket at https://my.peopleshost.com/submitticket.php and our support team will be glad to assist.


Was this answer helpful?

« Back