Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Forgot mongodb admin database credentials. Reset everything

I forgot the credentials of my admin user. Hence i am not able to connect to cluster mongo shell. Now i want to delete all users and and credentials or even if reset of mongodb is possible then it will be a lot help.

I tried following commands but got "authentication required error". db.createUser(), db.dropDatabase().

I expect to create new admin user with credentials.

like image 972
Nilesh Avatar asked Sep 06 '25 01:09

Nilesh


1 Answers

you can do it by logging in to your Atlas Cluster here: https://www.mongodb.com. Then, on the left sidebar, you click on 'Database Access'. There you can manage the users and you can even delete them and create new ones.

like image 162
Edgar Bonilla Avatar answered Sep 09 '25 05:09

Edgar Bonilla