1.执行下面Error: couldn‘t add user: No role named [email protected] :
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 [email protected] :
时间: 2024-10-27 18:57:18