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_only mode without enabling authentication.
    • Infomaniak's automatic backups do not include MongoDB databases.

 

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.

  1. Click here to access the management of your Cloud Server on 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 sidebar.
  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 authentification option.
  8. Save the changes:

Has this FAQ been helpful?