MongoDB新增密码

use YOUR_DB
db.createUser({user: "username",pwd: "password",roles: [ { role: "dbAdmin", db: "YOUR_DB" } ]})

你可能感兴趣的:(mongodb,数据库)