Js代码
- {
- "_id" : ObjectId("52a82bb26cea234c4deb06fd"),
- "user" : "admin",
- "pwd" : "7c67ef13bbd4cae106d959320af3f704",
- "roles" : [
- "userAdminAnyDatabase"
- ]
- }
- db.system.users.findOne()
- {
- "_id" : ObjectId("52a849331575fa94bad8b7ce"),
- "user" : "admin",
- "pwd" : "7c67ef13bbd4cae106d959320af3f704",
- "roles" : [
- "userAdminAnyDatabase",
- "dbAdminAnyDatabase",
- "readWriteAnyDatabase",
- "clusterAdmin"
- ]
- }
功能全开
这才是超级管理员的权限嘛