DB Permission Issue?

Anyone else getting the following error when trying to show collection?

m121 user does not have access to video DB
Please connect to aggregations and run the command
You should see collections

@Ramachandra_37567 sorry I didn’t get you . I have used the connection command provided in the Chapter 0, and I am getting this error, do you mean I need to connect using some different user.

@Ayush_56509

The connection string as provided has the following settings

"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"

Notice the parameter “/aggregations” in the URL. If you use this you will be automatically placed into the ‘aggregations’ database, which you can verify once you are connected by issuing the command ‘db’.

@Bryan_37475

The URL provided already puts you in the correct db ‘aggregations’. No other database in the cluster is available to you, so the ‘use video’ is an error. HTH.

thanks :slight_smile: