Changing the password in MongoDB for existing user

后端 未结 4 724
情话喂你
情话喂你 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条回答
  •  遥遥无期
    2021-02-12 13:39

    Starting of Mongodb 4.0, you have to use db.updateUser(), setting passwordDigestor key as "server", when updating the user password:

    • https://dba.stackexchange.com/questions/238847/cant-update-user-password-on-mongodb-4-0-5-use-of-scram-sha-256-requires-undig

提交回复
热议问题