Knowledge base

1000 FAQs, 500 tutorials and instructional videos. Here, there are only solutions!

Access databases from outside the network

Update 08/31/2026

This guide details how to manage access and security for your databases (MySQL, MariaDB, and MongoDB) on a managed Cloud Server.

 

Introduction

  • The firewall is accessible in your Manager even if no Apache site is configured (useful for projects exclusively using Node.js, for example).
  • Regarding access to MySQL databases from another Infomaniak web hosting account, please refer to this other guide.
  • Regarding MongoDB:
    • To ensure the security of your data, the system will block saving if you attempt to disable local_only mode without enabling authentication.
    • Infomaniak's automatic backups do not include MongoDB databases.

 

Allow outbound access (Infomaniak → external)

From an Infomaniak Web Hosting or Cloud Server, requests to external databases are allowed by default without any port restrictions.

 

Allowing incoming access (external → Infomaniak)

To access your databases from 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 create a user within your database.

To enable remote access via Fast Installer, you need to adjust the configuration while adhering to strict security rules.

  1. Click here to access the management of your Cloud Server in the Infomaniak Manager (need help?).
  2. Click directly on the name assigned to the Cloud Server in question.
  3. Click on Fast Installer in the left-hand menu.
  4. Click on MongoDB.
  5. Click on the action menu to the right of the instance and choose Configure.
  6. Disable the local_only option.
  7. Enable the authentication option.
  8. Save the changes:

Has this FAQ been helpful?