Changing the password in MongoDB for existing user

后端 未结 4 732
情话喂你
情话喂你 2021-02-12 12:40

I have production environment where my mongoDB is up and running and DBAs are asking us to change the password which we use for authentication. One way to do this is run the add

4条回答
  •  猫巷女王i
    2021-02-12 13:44

    For v2.4

    db.changeUserPassword("app_user", "new password")
    

    https://groups.google.com/d/msg/mongodb-user/KkXbDCsCfOs/rk2_h-oSbAwJ https://jira.mongodb.org/browse/DOCS-1515

提交回复
热议问题