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

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

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

php - Cloud9 cloud IDE and CakePHP -