How to reset VM password?

To reset the MySQL root password in the VM, you can use the following command in the terminal:

#!/bin/bash
sudo mysqladmin -u root password labex

This command will reset the root password to labex. After executing it successfully, you can log in to the MySQL database using:

mysql -u root -plabex

Make sure to run the command in a terminal within the VM environment. If you encounter any issues, let me know!

0 Comments

no data
Be the first to share your comment!