标签:
参考:https://docs.mongodb.org/manual/reference/method/db.createUser/
> db.createUser(
... {
... user: "maxh",
... pwd: "123",
... roles: [ "readWrite", "dbAdmin" ]
... }
... )
Successfully added user: { "user" : "maxh", "roles" : [ "readWrite", "dbAdmin" ]
}
标签:
原文地址:http://www.cnblogs.com/mxh1099/p/5125519.html