MongoDB

Discover our Public Cloud offer

Shared Hosting for Everyone, imagined by developers, for developers.

Discovering the Public Cloud

Connection

Servermongodb-[account].alwaysdata.net
Port27017 (MongoDB port by default)
Connectionmongodb://user:password@mongodb-[account].alwaysdata.net/bdd

The connection data depends on the relevant account. You can find the precise values in the administration interface section under Databases > MongoDB.

Example with mongo

In our example, we use the SSH access and consider the following information:

  • Account name: foo
  • Database name: foo_base
  • We will use the default SSH users and databases, i.e. the ones created when the accounts are opened (e.g. foo for the foo account).
foo@ssh:~$ mongo "mongodb://foo:password@mongodb-foo.alwaysdata.net/foo_base"

Permissions

Creating a MongoDB user corresponds to an entry in the system.users collection.



Find our guides: