Not able to connect from local

I completed all above steps as mentioned in readme but facing below issue while working 9th steps : 8. Now you can test the setup by connecting via the mongo shell. You can find instructions to connect in the Connect section of the cluster dashboard:

D:\MongoDB\mongodb-shell-win32-x86_64-2012plus-4.2.0\mongodb-win32-x86_64-2012plus-4.2.0\bin>mongo “mongodb+srv://” --username m220student
MongoDB shell version v4.2.0
Enter password:
connecting to: mongodb://,,
2019-08-22T11:41:38.758+0530 I NETWORK [js] Starting new replica set monitor for mflix-shard-0/,,
2019-08-22T11:41:38.759+0530 I CONNPOOL [ReplicaSetMonitor-TaskExecutor] Connecting to
2019-08-22T11:41:38.759+0530 I CONNPOOL [ReplicaSetMonitor-TaskExecutor] Connecting to
2019-08-22T11:41:38.759+0530 I CONNPOOL [ReplicaSetMonitor-TaskExecutor] Connecting to
2019-08-22T11:41:42.753+0530 I NETWORK [ReplicaSetMonitor-TaskExecutor] Confirmed replica set for mflix-shard-0 is mflix-shard-0/,,
Implicit session: session { “id” : UUID(“f7e65e12-3e61-4485-9385-d4836d6206b0”) }
MongoDB server version: 4.0.12
WARNING: shell and server versions do not match
Error while trying to show server startup warnings: user is not allowed to do action [getLog] on [admin.]
MongoDB Enterprise mflix-shard-0:PRIMARY>

Please assist me on same

Hey @Swati210

You can ignore the

You are connected here


try issuing command like:

show dbs

use sample_mflix (or mflix depends on what you are using)
show collections

If you are not connected and get some authorization errors, I suggest you check your username and password, check if you have whitelisted first of all your ip address, but preferred for this course is whitelisting for everybody. I also suggest you get compass the stable enterprise edition and check your connection there. All connection strings are in cluster dashboard.

hope this helps


1 Like