Unable to Connect the Class Atlas Cluster from the mongo Shell

I am unable to connect the class Atlas cluster from the mongo shell.
I am getting the below errors
But when I ping the command to check the firewall it was not blocking then and even i checked now. Its open. Please help!

sorry actually you need to use the “Standard connection string (shell 3.4+)” option


not the “Short SRV connection string”

Hi Rohit_68448,

These are just warnings, you can continue working in the mongo shell.

As mentioned in your screenshot, authentication is not enabled for the user running the mongo shell.
You need to create a root user on the admin database.

  1. Start mongod without --auth enabled
    mongod --port 27017 --<Paramters>
  2. Start mongo shell
  3. Create a user on admin
    use admin
    user: “m001-student”,
    pwd: “m001-mongodb-basics”,
    roles: [ { role: “root”, db: “admin” } ]
  4. Restart mongod with --auth enabled.

Follow the detailed instructions here


Any idea? i’m getting the below error.

C:\Govind\Mongo_Data\loadMovieDetailsDataset>C:\Program Files\MongoDB\Server\4.0
\bin\mongo “mongodb://mflix-shard-00-00-yhnlx.mongodb.net:27017,mflix-shard-00-0
Set=mflix-shard-0” --ssl --authenticationDatabase admin --username m001-student
–password m001-mongodb-basics
‘C:\Program’ is not recognized as an internal or external command,
operable program or batch file.

C:\Govind\Mongo_Data\loadMovieDetailsDataset>C:“Program Files”\MongoDB\Server\4
.0\bin\mongo “mongodb://mflix-shard-00-00-yhnlx.mongodb.net:27017,mflix-shard-00
caSet=mflix-shard-0” --ssl --authenticationDatabase admin --username m001-studen
t --password m001-mongodb-basics
MongoDB shell version v4.0.5
connecting to: mongodb://mflix-shard-00-00-yhnlx.mongodb.net:27017,mflix-shard-0
2019-01-18T12:39:27.889+0000 I NETWORK [js] Starting new replica set monitor fo
r mflix-shard-0/mflix-shard-00-00-yhnlx.mongodb.net:27017,mflix-shard-00-01-yhnl
2019-01-18T12:39:28.318+0000 I NETWORK [ReplicaSetMonitor-TaskExecutor] Success
fully connected to mflix-shard-00-00-yhnlx.mongodb.net:27017 (1 connections now
open to mflix-shard-00-00-yhnlx.mongodb.net:27017 with a 5 second timeout)
2019-01-18T12:39:28.426+0000 I NETWORK [js] Successfully connected to mflix-sha
rd-00-01-yhnlx.mongodb.net:27017 (1 connections now open to mflix-shard-00-01-yh
nlx.mongodb.net:27017 with a 5 second timeout)
Implicit session: session { “id” : UUID(“87d7c4ec-383b-48b5-98cf-55292ae2088a”)
MongoDB server version: 4.0.5
Error while trying to show server startup warnings: user is not allowed to do ac
tion [getLog] on [admin.]
MongoDB Enterprise mflix-shard-0:PRIMARY> 2019-01-18T12:39:58.677+0000 I NETWORK
[ReplicaSetMonitor-TaskExecutor] Successfully connected to mflix-shard-00-02-y
hnlx.mongodb.net:27017 (1 connections now open to mflix-shard-00-02-yhnlx.mongod
b.net:27017 with a 5 second timeout)

This is just a warning, you can continue working in the mongo shell. When you see this:

    MongoDB Enterprise mflix-shard-0:PRIMARY> 

It means you are in the mongo shell. But your command doesn’t seems right after this. You can run only mongo shell commands.