use admin
db.addUser( { user: "<username>",
pwd: "<password>",
roles: [ "userAdminAnyDatabase",
"dbAdminAnyDatabase",
"readWriteAnyDatabase"
] } )
MongoDB 新建数据库用户例子
最新推荐文章于 2024-04-24 15:14:45 发布