MongoDB 修改 root 密码 2020-02-25 MongoDB, 笔记 MongoDB 修改 root 密码1234567mongo -uroot -p123456 localhost:27017/admindb.updateUser('root',{pwd:'654321',roles:[{role:'root',db:'admin'}]})exit 退出mongo -uroot -p654321 localhost:27017/admin