Reset the password for the Mysql root account with command line 2016 July 8 Linux Log in to mysql Type the following commands to change the password: That’s it.