sudo service mysqld stop
sudo /etc/init.d/mysqld stop
sudo mysqld_safe --skip-grant-tables &
mysql -u root
use mysql; update user set password=PASSWORD("NEW-ROOT-PASSWORD") where User='root'; flush privileges; quit
sudo service mysqld stop sudo service mysqld start
sudo /etc/init.d/mysqld stop sudo /etc/init.d/mysqld start
mysql -u root -p