How to change MongoDB Admin Password
I accidentally pushed my MongoDB admin password to GitHub because I didn't save my passwords/secrets inside a .gitignore folder.
I couldn't easily find a tutorial or blog on how to change my MongoDB admin password, so I hope this can help someone else.
Here is how do it:
After logging into your MongoDB, locate Database Access under the SECURITY section.
Once presented with a list of user accounts for your database, click on the EDIT
button to open a modal where you can update your password with the Edit Password
button. Do not forget to also click on the Update User
button in the bottom corner to save.
I hope you found this helpful. Thank you for reading my blog.
You can also connect with me in Twitter: @brianbud_
Subscribe to my newsletter
Read articles from Brian Bud directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by
Brian Bud
Brian Bud
I am passionate about using tech to continue Learning, Building & Connecting w/ others. I am learning web development and I hope the blogs I write will be useful to me when I inevitably get stuck in the future.