mongodb设置数据库用户,权限,java mongodb driver3.0驱动用户验证
一.设置mongodb超级管理员,数据库管理者
1.设置mongodb超级管理员:> use admin
switched to db admin
> db.createUser({user:'super',pwd:'super',roles:['root']})
Successfully added user: { "user" : "super", "roles" : [ "root" ] }
原创
2015-10-17 10:22:24 ·
3222 阅读 ·
1 评论