Changing the password in MongoDB for existing user Changing the password in MongoDB for existing user mongodb mongodb

Changing the password in MongoDB for existing user


You linked to a question asking about adding authentication to MongoDB which involves starting 'mongod' with option --auth. Since you are already running with --auth the restart is not necessary in your scenario.

Just change the user password and you'll be set to go.