当前位置:Gxlcms > 数据库问题 > mongodb添加账号密码

mongodb添加账号密码

时间:2021-07-01 10:21:17 帮助过:2人阅读

原文作者: xingguang
原文链接:https://www.tiance.club/post/2802551252.html

添加账号密码

use admin
db.createUser({user:"root",pwd:"",roles:["root"]})

use test
db.createUser({user:‘root‘,pwd:‘root‘,roles:[‘readWrite‘]})

原文作者: xingguang
原文链接:https://www.tiance.club/post/2802551252.html

mongodb添加账号密码

标签:ODB   root   ash   write   mongod   pwd   ref   user   https   

人气教程排行