M001 - Unable to create the reviews collection

I was trying to load the reviews collection in the videos database in the Cluster0 from the mongo shell, and I keep getting the following error.

Error while trying to show server startup warnings: user is not allowed to do action [getLog] on [admin.]

This is just a warning message that user is not allowed to check [getLog] on admin database. You should be able to connect to Mongo shell just fine.

If you have some other problem please elaborate so that I can help you better.

Kanika

No, just that I couldn’t check the table because of that.
If that’s the case, what are the other options to check the table?

Thanks.

Hi Apurva_Kunkulol,

From the mongo shell, you can check about dbs:

show dbs

and collections (tables):

show collections

For checking all records, run find command like. db.movies.find().

Kanika

I was looking for options, other than these, but thanks anyway. I use them all the time.
This shows up particularly, when connecting to the cluster from mongo shell.
So I wanted to know if there’s a reason, or this error is absolutely unknown, and how to resolve it.

Thanks.
Apurva

Kanika already told you, the error “Error while trying to show server startup warnings: user is not allowed to do action [getLog] on [admin.]” only warns you that your user account cannot perform an act on the admin database. It does not block you from using the “video” database.