left join
我正在创建一个新用户
它显示我何时使用CriteriaBuilder.like(Expression<String> x, Expression<String> pattern, char escapeChar);
但是当我尝试> use failsafereports;
> db.createUser({ user : 'readonly', pwd: 'readonly', roles : ['read']})
Successfully added user: { "user" : "readonly", "roles" : [ "read" ] }
> show users;
{
"_id" : "failsafereports.readonly",
"user" : "readonly",
"db" : "failsafereports",
"roles" : [
{
"role" : "read",
"db" : "failsafereports"
}
]
}
> db.auth('readonly','readonly')
Error: 18 { ok: 0.0, errmsg: "auth failed", code: 18 }
0
时,它失败了。
任何想法?
我已经在互联网上阅读了从命令行发生的这个问题,但找不到从mongo shell发生的问题。