Macaca reliable 平台注册用户后,MongoDB 数据库查不到注册用户

Awesome · September 25, 2017 · 393 hits

注册后的用户都在哪个地方存放呢?
db.createUser(
... {
... user: "admin",
... pwd: "admin",
... roles: [ { role: "userAdminAnyDatabase", db: "admin" } ]
... }
... )
Successfully added user: {
"user" : "admin",
"roles" : [
{
"role" : "userAdminAnyDatabase",
"db" : "admin"
}
]
}

show collections
admin
system.users
system.version

db.admin.find().count();
0

No Reply at the moment.
需要 Sign In 后方可回复, 如果你还没有账号请点击这里 Sign Up