2
> use mydb
switched to db mydb
> show users
{
    "_id" : "mydb.mydbReadWrite",
    "user" : "mydbReadWrite",
    "db" : "mydb",
    "roles" : [
        {
            "role" : "readWrite",
            "db" : "mydb"
        }
    ]
}

> db.dropUser(mydbReadWrite)
2015-03-29T03:55:52.276+0200 E QUERY    ReferenceError: mydbReadWrite is not defined
    at (shell):1:13

I don't understand? I am logged in with a root user.

1 Answer 1

5
db.dropUser(mydbReadWrite)

instead use:

db.dropUser("mydbReadWrite")
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.