reset password in a replica set cluster

28 views
Skip to first unread message

armand pirvu

unread,
Dec 7, 2018, 9:35:23 AM12/7/18
to mongodb-user
Hello again

I set up a 3 replica set cluster and clutz as i am id not write my password

A bit of reading and I came with the following recipe

Does it sound okay/reasonable ?



- comment auth section

- comment also replication section

- restart

- mongo

- use amin

- db.updateUser("myadminuser", {pwd: "myadminpwd" })

- uncomment auth section

- uncomment also replication section

- restart mongo


Thank you

-- Armand

Reply all
Reply to author
Forward
0 new messages