Lost MongoDB root password
haz-yuan
HOBBY
9 months ago
I changed production MongoDB Variable tab's root password without saving the original.
I thought changing the Variable root password changes the MongoDB's actual root password as well, which it didn't. Now I have lost my original password and I cannot access the DB anymore.
I have actual customer's data in it that I have not backup.
What can I do? I tried appending the --noauth
to the custom start command to redeploy without auth:docker-entrypoint.sh mongod --ipv6 --bind_ip ::,0.0.0.0 --noauth
but initialization fails when I append the flag.
1 Replies
9 months ago
Hello, Have you tried looking into your activity, there should be a change that shows you the old password.