Reset MySQL root Password
To reset MySQL root password, stop MySQL
1 |
service mysql stop |
Start MySQL with
1 |
mysqld_safe --skip-grant-tables |
Start another terminal, login to MySQL as root
1 |
mysql -u root |
Run following commands to change password.
1 2 3 |
update mysql.user set password=PASSWORD("PASSWORD_HERE") where User='root'; flush privileges; quit |
Now you need to kill running MySQL processes and start MySQL as normal.
1 2 |
pkill mysql service mysql start |