mongodb添加用户

db.createUser(
{
user : "a",
pwd : "1",
roles : [ { role: "readWrite", db: "bos-log" } ]
})

posted @ 2017-06-26 19:32  kingsy.lin  阅读(104)  评论(0编辑  收藏  举报