Error: couldn't add user: No role named clusterAdmin@dsform :
Posted 蒋孝愚
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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
以上是关于Error: couldn't add user: No role named clusterAdmin@dsform :的主要内容,如果未能解决你的问题,请参考以下文章
iOS开发—— Couldn't add the Keychain Item
YUM安装提示PYCURL ERROR 6 - "Couldn't错误的解决办法
U盘启动盘安装win10出现cdboot:couldn't find ntldr
insh.exe:*** Couldn't reserve space for cygwin's heap,Win32 error 0
解决 Sourcetree 报错 Couldn't posix_spawn: error 2 问题
apache2.2版本 configuration error: couldn't perform authentication. AuthType not set!: /