...
Expand | ||
---|---|---|
| ||
- Connect to the mongo Shell Shell
Code Block | ||
---|---|---|
| ||
C:\>mongo --host IPoderLOCALHOST --authenticationDatabase admin -u bvq -p P@ssw0rd
MongoDB shell version v4.4.3
connecting to: mongodb://127.0.0.1:27017/?compressors=disabled&gssapiServiceName=mongodb |
...
Code Block | ||
---|---|---|
| ||
> db.changeUserPassword("bvq", "NEW_PASSWORD") > |
- Switch to your DBExit mongo Shell
Code Block | ||
---|---|---|
| ||
> use bvq switched to db bvq > exit bye |
- Verify the Password
Code Block | ||
---|---|---|
| ||
C:\>mongo --host IPoderLOCALHOST--authenticationDatabase admin -u bvq -p NEW_PASSWORD
MongoDB shell version v4.4.3
connecting to: mongodb://127.0.0.1:27017/?compressors=disabled&gssapiServiceName=mongodb |
- Exit mongo Shell
Code Block | ||
---|---|---|
| ||
> exit bye |
...