Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Expand
titleServices


  • Connect to the mongo Shell Shell
Code Block
themeMidnight
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
themeMidnight
> db.changeUserPassword("bvq", "NEW_PASSWORD")
>



  • Switch to your DBExit mongo Shell
Code Block
themeMidnight
> use bvq
switched to db bvq
> exit
bye



  • Verify the Password
Code Block
themeMidnight
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
themeMidnight
> exit
bye

...