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?
For MongoDB version 2.6 use:
db.createUser( { user: "testUser" pwd: "password", roles: [{role: "readWrite", db:"yourdatabase"}] })
See the docs