• service mysql stop
  • mysqld_safe --skip-grant-tables &
  • mysql -u root
  • use mysql;
  • flush privileges;
  • SET PASSWORD FOR 'root'@'localhost' = PASSWORD('MyNewPass');
  • quit
  • pkill -9 mysqld
  • service mysql restart
  • mysql -u root -p