Knowledge base
1000 FAQs, 500 tutorials and instructional videos. Here, there are only solutions!
Access databases from outside
This guide details the management of access and security for your databases (MySQL, MariaDB, and MongoDB) on a Managed Cloud Server.
Preamble
- The firewall is accessible in your Manager even if no Apache site is configured (useful for Node.js-only projects, for example).
- Regarding access to MySQL databases from another Infomaniak Web Hosting, refer to this other guide.
- Regarding MongoDB:
- To ensure the security of your data, the system blocks registration if you attempt to disable
local_onlymode without enablingauthentication. - Infomaniak's automatic backups do not include MongoDB databases.
- To ensure the security of your data, the system blocks registration if you attempt to disable
Allow outgoing access (Infomaniak → external)
From an Infomaniak Web Hosting or Cloud Server, requests to external databases are allowed by default without port restrictions.
Allow incoming access (external → Infomaniak)
To access your databases from the outside, you must have a Cloud Server and open the corresponding ports in the firewall of your server:
- MySQL / MariaDB: port
3306(TCP) - MongoDB: port
27017(TCP)
Configure remote access for MongoDB
By default, MongoDB only accepts local connections.
Before making your instance public (remote access), you must imperatively create a user within your database.
To allow remote access via Fast Installer, you must adjust the configuration while respecting strict security rules.
- Click here to access the management of your Cloud Server on the Infomaniak Manager (need help?).
- Click directly on the name assigned to the Cloud Server in question.
- Click on Fast Installer in the left sidebar.
- Click on MongoDB.
- Click on the action menu ⋮ to the right of the instance and choose Configure.
- Disable the
local_onlyoption. - Enable the
authentificationoption. - Save the changes:

Link to this FAQ:
Has this FAQ been helpful?