mongoldb create user

阅读更多

https://docs.mongodb.com/v3.2/reference/method/db.createUser/

 

{ user: "",
  pwd: "",
  customData: { <any information> },
  roles: [
    { role: "", db: "" } | "",
    ...
  ]
}

https://docs.mongodb.com/v3.2/reference/built-in-roles/#built-in-roles

https://docs.mongodb.com/v3.2/tutorial/enable-authentication/

你可能感兴趣的:(mongoldb create user)