Import a database from the Hostinger dashboard by uploading a .sql or .sql.gz file in Databases → Management. Hostinger creates a new MySQL database and database user for the file and imports your data into it. When the import finishes, save the login details and update your website’s configuration file.
Before you start
- Prepare your database file in
.sqlor.sql.gzformat. If your database is hosted with another provider, follow How to generate backups from other providers at Hostinger to get the file. - Importing from the Hostinger dashboard always creates a new database. To import into an existing database, use phpMyAdmin or SSH instead.
Import a database file from the Hostinger dashboard
Use the Import database button in Databases → Management to upload your file. Hostinger creates the database and user automatically, so you don’t need to create a new MySQL database first.
- Go to Websites → Manage site. Then, select Databases → Management in the left sidebar.
- Select Import database next to List of Current MySQL Databases And Users.

- Drag and drop your
.sqlor.sql.gzfile into the Import a database window, or select Choose file.

- Wait for the file to upload. Keep Delete the .sql file after import selected to remove the uploaded file from your files after the import. Clear the checkbox to keep the file.

- Select Import. Hostinger uploads the file, creates the database and user, and imports the data. The window shows the progress of each stage.

- Keep the page open until the import finishes to get the login details.
- Copy the Database name, Username, and Password from the Your database is ready window. Then, select Done.

The database password appears only once, when the import finishes. Save it before closing the window. You can change the database password later in the database list.
To check the imported tables, select Enter phpMyAdmin in the Your database is ready window. Learn more about how to access phpMyAdmin at Hostinger.
Connect your website to the imported MySQL database
The new database appears in the MySQL database list with a New label. It is assigned to the website you imported it from.
Update your website’s configuration file with the new database name, username, and password. The steps depend on your content management system (CMS). Find these values later in your MySQL database details.
If your website shows a database connection error after the update, follow How to fix “Error establishing a database connection” at Hostinger.
Your database is now imported and ready to connect to your website. For the full process of moving a database to Hostinger, see How to upload and set up your database at Hostinger.
NOTES
- The maximum file size for a database import from the Hostinger dashboard depends on your hosting plan.
- To rename, delete, or manage the new database, see How to manage MySQL databases in Hostinger.