Search code examples
mongodbcluster-computingexplorermongodb-atlas

Can't add server(Atlas Cluster) in Mongo Explorer


How can I add and connect to this Atlas Cluster from Mongo Explorer?:

mongo "mongodb://cluster0-shard-00-00-jxeqq.mongodb.net:27017,cluster0-shard-00-01-jxeqq.mongodb.net:27017,cluster0-shard-00-02-jxeqq.mongodb.net:27017/aggregations?replicaSet=Cluster0-shard-0" --authenticationDatabase admin --ssl -u m121 -p aggregations --norc

PS: I need to add and run this from Mongo Explorer (Plugin for IntelliJ IDEA) not from shell.

github.com/dboissier/mongo4idea


Solution

  • Add a new server as on the image:

    enter image description here

    • Server url: cluster0-shard-00-00-jxeqq.mongodb.net:27017,cluster0-shard-00-01-jxeqq.mongodb.net:27017,cluster0-shard-00-02-jxeqq.mongodb.net:27017
    • SSL: checked
    • User Database: aggregations

    Then go to Authentication tab and set credentials:

    enter image description here

    • Username: m121
    • Password: aggregations
    • Auth. database: admin
    • Auth. mechanism: SCRAM-SHA-1