MongoDB 用户权限管理
db.updateUser(username, update, writeConcern) db.updateUser("<username>",
{
customData : { <any information> },
roles : [
{ role: "<role>", db: "<database>" } | "<role>",
...
],
pwd: "<cleartext password>"
},
writeConcern: { <write concern> }
)
页:
[1]