mlab resetting database password
Asked Answered
T

2

9

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

"it is possible that you’re mistakenly using the username and password that you use to log into your mLab account rather than the database user’s username and password. This is a common point of confusion because they are not necessarily the same."

Here is the full page

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

Tannenwald answered 3/5, 2016 at 18:16 Comment(0)
T
11

So I solved my own issue by running Heroku config on the project that was using the database, which gave the password (something that I definitely did not set).

Turns out the database password is set by Heroku. That was quite frustrating.

Tannenwald answered 3/5, 2016 at 18:54 Comment(2)
I want to kiss your footprints duuude!!!! Saved my life, I burned all of my day for googleing this idiot bug... I wish god bless you!!!!Decker
Is there any way to change this password?Benenson
I
7

Just to add slightly to the accepted answer of this post:

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

Your MongoDB username and password will be in the the MONGODB_URI:

mongodb://USERNAME:[email protected]:13320/heroku_XXXXXX

Insult answered 15/12, 2017 at 15:56 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.