MongoDB

Connecting to MongoDB

Enclave MongoDB Databases require authentication and SSL to connect.

Tip

MongoDB databases use a valid certificate for their host, so you’re encouraged to verify the certificate when connecting.

Connecting to the admin database

There are two MongoDB databases you might want to connect to:

  • The admin database.
  • The db database created by Enclave automatically.

The username (aptible) and password for both databases are the same. However, the users in MongoDB are different (i.e. there is a aptible user in the admin database, and a separate aptible user in the db database, which simply happens to have the same password).

This means that if you’d like to connect to the admin database, you need to make sure to select that one as your authentication database when connecting: connecting to db and running use admin will not work.

Clustering

Replica set clustering is available for MongoDB.