Knowledge base
1000 FAQs, 500 tutorials and instructional videos. Here, there are only solutions!
Import a database
Update 06/22/2026
This guide explains how to import a MySQL/MariaDB database to an Infomaniak Web Hosting account.
Importing a database
To import a database into Infomaniak:
- Click here to access the management interface for your product in the Infomaniak Manager (need help?).
- Click directly on the name assigned to the product in question:

- Click on the chevron to the right of the database menu in the left-hand sidebar.
- Click on Databases.
- Click on the “More actions” button/menu to access different options.
- Choose Import a database:

- You will then have the following options:

- upload your database directly (
sql,gz,bz2,zip, 300 MB max) from your computer, - select the file to import from your hosting account after uploading it to the server via FTP,
- choose a backup from those that are created automatically.
- upload your database directly (
- you can also choose:

- import the data into a new database (creation),
- import into an existing database (replacement/overwrite).
Warning: a MySQL/MariaDB import following an export requires action on your part if you use TRIGGERS/VIEWS: please refer to this other guide!
Alternative method (SSH - for advanced users)
Prerequisites
- You must have the
.sqlfile of the database to be imported. - You must have created a new, empty database.
- You must have a user who has all rights to the database.
- You must have an FTP + SSH account.
To import via SSH:
- Upload the database to be imported via FTP to your hosting.
- Open an SSH terminal/console,
- From a
Terminal-type application (command-line interface,CLI) on your device, for example the PuTTY application (to be downloaded and installed on Windows) or Terminal (installed by default on macOS), run and adapt the following command: ssh ftp-user@server-address- replace
ftp-userwith the FTP + SSH account username (e.g.abcd_user) - replace
server-addresswith the web server address for your hosting
- replace
- Enter the password for the FTP + SSH account.
Enter and adapt the following command:
mysql --verbose -u db-user -p db-name -h db-host < path- replace
db-userwith the database username (e.g.abcd_user) - replace
db-namewith the database name (e.g.abcd_sample) - replace
db-hostwith the MySQL server for your hosting - replace
pathwith the path where you uploaded the database in step 1 of this procedure (if you have a single website stored in the default location, the path would be, for example,~/web/test.sql)
- replace
- Wait for the import to complete (this may take several minutes depending on the size).
Link to this FAQ: https://faq.infomaniak.com/1942
Has this FAQ been helpful?