I start a new mongo instance, create a user, authorize it, but when I run \"show collections\", the system says that the id is not authorized. I do not know why?
I solved it like so for mongoDB 2.6 + currently 3
db.createUser( { user: "username", pwd: "password", roles: [ { role: "root", db: "admin" } ] } )
note that for the role filed instead of userAdminAnyDatabase we use root