How can I connect to MongoDB Atlas using Robomongo?

rocky picture rocky · Apr 29, 2017 · Viewed 23.3k times · Source

I signed up freely at MongoDB Atlas and created cluster now I want to know how can I create database and connect to that using Robomongo?

Answer

iamkdblue picture iamkdblue · Oct 25, 2017

1) (Atlas Mongodb console)First of all click on ALLOW ACCESS FROM ANYWHERE(see in below image) and put some random IP address , don't click on Add Current IP Address otherwise it will not connect with robomongo .

pic1

2) Now open robomongo ,select connection Tab and then select type Direct Connection , and put your primary cluster in Address [you can get your Primary Cluster Address from Project->Clusters->(choose) Primary Cluster-> "There you will find your Primary Cluster Address"] .

pic2

3)now click on Authentication Tab , put database name is admin and put your username and password , Auth Mechanism is SCRAM-SHA-1.

pic3

4) select self-signed certificate as Authentication Method

pic4

5) Now , click on test,we are done ! pic5

The standard Mongo URI connection schema has the form:

 mongodb://[username:password@]host1[:port1][,...hostN[:portN]]][/[database][?options]]

Security Reasons

  1. Do not allow access everywhere for security reasons
  2. Restrict to your IP address
  3. Connect via roboMongo 3T using a secondary cluster node from MongoDB Atlas