Home > database >  I can't create a mongodb database. User is not allowed to do action [createCollection]
I can't create a mongodb database. User is not allowed to do action [createCollection]

Time:08-27

I'm completely new in databases and I'm trying to learn the MERN stack. I successfully created a cluster, but when I'm trying to create a database in MongoDB Atlas, it's just giving me an error:

user is not allowed to do action [createCollection] on [mydatabase.users]

What should I do? I literraly can't find the solution for this problem.

error

CodePudding user response:

The user needs to be granted with the readWrite role.

  • Related