Knowledge base
1000 FAQs, 500 tutorials and explanatory videos. Here, there are only solutions!
Export a database
This guide explains how to back up or export a MySQL/MariaDB database via the Infomaniak Manager or SSH.
Export a database via the Manager
To export an Infomaniak database:
- Click here to access your product management in the Infomaniak Manager (need help?).
- Click directly on the name assigned to the relevant product.
- Click on Databases in the left-hand menu.
- Click on the action menu â‹® to the right of the relevant object in the displayed table.
- Click on Export (or on Download a backup):
- Click on the export method and choose the database to download from the dropdown menu.
- Click on the Next button.
- Click on the desired instructions, if any:
- Compression
Gzip
Drop Table
Create Table if not exists
Insert ignore into
- Compression
- Click on the Export button.
Export a database via SSH
If you cannot export the database via the console or the database is large:
- If necessary, create an FTP SSH account.
- Connect to the server via SSH (need help?).
Adapt and execute the following SSH command:
mysqldump --host=your_mysql_server -u your_mysql_user --password=your_mysql_user_password database_name --no-tablespaces > backup.sql
- Wait during the execution of the SSH command (the terminal may freeze for a few seconds).
- Log in to the server via an FTP client/software.
- Download the generated SQL file.
Additional help
Example of a command to execute in step 3 of the second procedure:
mysqldump --host=fhzc.myd.infomaniak.com -u lfcz_test --password=mypassword lfcz_test --no-tablespaces > backup.sql
- Refer to this other guide if you are looking for information related to the MySQL server, username, and database password.
Link to this FAQ: