Reset the password for the Mysql root account with command lineLog in to mysql Type the following commands to change the password: That’s it.