# Working with Mongo ### Changing password for a user 1. Connect to test server 2. Connect to mongo by running `mongo` 3. `use saveday_mongodb` to connect to the saveday_mongodb database ``` db.person.update( {'userName': 'donadmin'}, {$set: {password :"1000:5bbfa8f08c086f56e82e182b51668b0ec0c816e56d6fc35b:55638a46bf5e5c1a2ca2f4775450ebc81a6c161144154543"} } ) ``` This maps to the password `Ch@ngethis123!` This will work for any user. All that needs to be changed is the query `{'userName': 'donadmin'}`