标签:mongodb read creat 用户 window 用户名 roo 密码 base
use admin
db.createUser({user:"root",pwd:"root",roles:[{"role":"userAdminAnyDatabase","db":"admin"}]})
db.auth("root", "root")
db.createUser({user:"jdh11",pwd:"123456",roles:[{"role":"readWrite","db":"test"}]})
标签:mongodb read creat 用户 window 用户名 roo 密码 base
原文地址:https://www.cnblogs.com/klsw/p/9463933.html