Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 211
Yellowfun Avatar asked Jun 20 '18 13:06

Yellowfun


People also ask

Why is MongoDB not connecting to Atlas?

If you have created a user and are having trouble authenticating, try the following: Check that you are using the correct username and password for your database user, and that you are connecting to the correct database deployment. Check that you are specifying the correct authSource database in your connection string.

Can't connect to MongoDB could not connect to any servers in your MongoDB Atlas cluster?

Could not connect to any servers in your MongoDB Atlas cluster. The IP address seen by Atlas is not necessarily the IP address of your workstations. If behind a router that does NAT or using VPN the address seen is the one of the router or the exit point of the VPN.

How do I connect MongoDB Atlas to MongoDB cluster?

1. Get the connection string from MongoDB Atlas Log in to your MongoDB Atlas account. This will take you to your Clusters overview. Click on Connect. Choose Connect Your Application. Choose your driver and driver version.

What is the free tier of MongoDB Atlas?

In this MongoDB Atlas tutorial, you’ll learn how to set up a cluster using the M0 free tier, connect to your cluster through Studio 3T, and import your first collection from a JSON file. What is MongoDB Atlas? MongoDB Atlas is MongoDB’s fully-managed cloud database service that comes with a free tier.

What is a cluster in MongoDB?

In the context of MongoDB, “cluster” is the word usually used for either a replica set or a sharded cluster.

How many client connections can an Atlas cluster support?

An Atlas cluster can support a number of client connections which is determined by its cluster tier. M30 clusters support up to 2000 simultaneous connections, while M200 clusters support up to 128,000 simultaneous connections.


1 Answers

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
like image 139
Alex Blex Avatar answered Oct 08 '22 12:10

Alex Blex