Connecting to your MongoDB instance by using a password¶
Complete the following steps to securely connect to your MongoDB instance by using a password:
Create a database.
Create a user with a password.
Locate your connection string.
Download your Certificate Authority (CA) file.
Connect with MongoDB.
Create a database¶
Use the following steps to create a database.
Log in to Mission Control.
Select your instance.
Select View more details
Select the Database tab from the instance Details screen.
Enter a name for your database and select the checkmark.
Create a user¶
Use the following steps to create a new user.
Log in to Mission Control.
Select your instance.
Select View more details
Select the Users tab from the instance Details screen.
Enter a name, password, and role for your new user. You can also grant the user access to a database.
Note
Create a database before creating a user.
Select the checkmark.
Locate your connection string and download your CA file¶
Each new ObjectRocket instance has a unique hostname and port combination.
To access your connection string:
Log in to Mission Control.
Select your instance.
Select View more details
Select the Connect tab of the instance Details screen.
View and copy your connection string.
Download the CA file for your instance.
Connect with MongoDB¶
Use the following steps to connect with your MongoDB instance.
Change the DBName in the connection string to the database with which you want to connect.
Connect to your MongoDB instance by using the username, password, and the downloaded CA Certificate file.
Note
SSL use is deprecated in MongoDB. TLS is preferred.
Note
The MongoDB client for Mac does not allow connection because of the length of the connection string.
Contact the Support team if you have any questions or need additional assistance.