发布于 2015-09-14 14:56:52 | 184 次阅读 | 评论: 0 | 来源: 网络整理
参数: |
|
---|
Use this function to create new database users, by specifying a username and password as arguments to the command. If you want to restrict the user to have only read-only privileges, supply a true third argument; however, this defaults to false.
For example:
db.addUser("user1" , "pass" , { readOnly : true } )