mongodb - db.dropUser("user") returning false when logged in as root -


i logged in following:

{     "_id" : "admin.root",     "user" : "root",     "db" : "admin",     "roles" : [         {             "role" : "root",             "db" : "admin"         }     ] } 

the following happens:

> use mydb switched db mydb > db.dropuser("mydbreadwrite") false 

i suspect not have roles, root?

it correct, user dropped before without notifying me(hmm...). returned false user did not exist.


Comments

Popular posts from this blog

angularjs - Showing an empty as first option in select tag -

qt - Change color of QGraphicsView rubber band -

c++ - Visible files in the "Projects" View of the Qt Creator IDE if using the CMake build system -