MongoDB添加用户

    

采用以下这种方式增加用户
db.createUser(
   {
     user: "accountUser",
     pwd: "password",
     roles: [ "readWrite", "dbAdmin" ]
   }
)
posted @ 2016-03-02 15:49  Me  阅读(148)  评论(0编辑  收藏  举报