当前位置:Gxlcms >
数据库问题 >
Authorization Security for Mongodb
Authorization Security for Mongodb
时间:2021-07-01 10:21:17
帮助过:26人阅读
"user1",
pwd: "passwd",
roles:[{"role":
"userAdminAnyDatabase",
"db":
"admin"}]
}
)
db.createUser(
{
user: "user2",
pwd: "passwd",
roles:[{"role":
"readWrite",
"db":
"database"}]
}
)
Authorization Security for Mongodb
标签:mina mongodb role roles blog server div radmin admin