码迷,mamicode.com
首页 > 其他好文 > 详细

Error: couldn't add user: No role named clusterAdmin@dsform :

时间:2017-09-08 11:50:36      阅读:660      评论:0      收藏:0      [点我收藏+]

标签:user   ref   custom   cluster   data   www   查看   tom   dmi   

1.执行下面Error: couldn‘t add user: No role named clusterAdmin@dsform :
db.createUser( { user: "dsform",
                 pwd: "123456",
                 customData: { employeeId: 12345 },
                 roles: [ { role: "readWrite", db: "dsform" },
                          "readWrite"] },
               { w: "majority" , wtimeout: 5000 } )          
换一个role,角色查看   http://www.cnblogs.com/yangxuming/p/6498631.html

Error: couldn't add user: No role named clusterAdmin@dsform :

标签:user   ref   custom   cluster   data   www   查看   tom   dmi   

原文地址:http://www.cnblogs.com/Bruce3555/p/7493233.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!