Mlab database password reset

I use mLab on Heroku to host my database, and I forgot the password for my database. I could not find anything about changing the password of my database, except for the following from the mLab website:

β€œIt's possible that you are mistakenly using the username and password that you use to log into your mLab account, rather than the username and password of the database users. This is a common point of confusion because they are not necessarily the same.”

Here is the full page

Does anyone know a way to reset the database password (and not my user password) on mLab?

+5
source share
2 answers

So, I solved my problem by running Heroku configuration in a project that used a database that gave a password (something that I definitely didn’t set).

Turns off the database password set by Heroku. It was pretty unpleasant.

+10
source

Just add a little to the accepted answer to this post:

Go to the "Settings" tab of the selected application and select "Reveal Config Vars"

Your MongoDB username and password will be in MONGODB_URI :

mongodb://USERNAME: PASSWOD@XXXXXX.mlab.com :13320/heroku_XXXXXX

+1
source

All Articles