To change the MySQL root password, follow these steps:
Log in to MySQL as the root user using your current root password.
Use a command to update the password for the root user, specifying your desired new password.
Refresh the MySQL privileges to apply the changes.
Exit MySQL.
Once done, you can log in again using the new root password.