Change Mongo Password
himanshugarg
HOBBYOP

2 years ago

Hi,

I've tried to edit the MONGOINITDBROOT_PASSWORD variable but the password keeps going back to the previous.

Is it not allowed or should I change it elsewhere?

Thanks

Solved

2 Replies

2 years ago

As the variable name may suggest, that variable is only used on first deployment to initialise the password, you would have to follow Mongo's documentation for changing the password, and only then should you change that variable to reflect what you had set purely for convenience so that the other password and URL variables are up-to-date.


Status changed to Solved Railway almost 2 years ago


himanshugarg
HOBBYOP

2 years ago

Understood. Thanks


Loading...