Reset MySQL root password

You can’t view the hashed password; the only thing you can do is reset it!

Stop MySQL:

or

Start it in safe mode:

(above line is the whole command)

This will be an ongoing command until the process is finished so open another shell/terminal window, log in without a password:

MySQL 5.7 and over:

Start MySQL:

or

Your new password is ‘password’.