My mongo version : 2.6.11
I want to check db.serverStatus()
in my robomomgo
But got errmsg:
{
"ok" : 0,
"errmsg" : "not authorized on admin to execute command { serverStatus: 1.0 }",
"code" : 13
}
How can I add authorization ??
I find a command can create user with authorization :
db.createUser(
{
user: "tester",
pwd: "password",
roles: [
{ role: "readWrite", db: "test" }
]
}
);
But I don't know which is db.serverStatus()
's database name??
How can I authorize it??