Error: couldn't add user: No role named clusterAdmin@dsform :
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