UPDATE mysql.user SET Password=PASSWORD('new-password') WHERE User='username';
FLUSH PRIVILEGES;
mysqld_safe --skip-grant-tables --old-passwords
mysql -u root
UPDATE mysql.user SET Password=PASSWORD('new-password') WHERE User='username';
FLUSH PRIVILEGES;
mysqld_safe --skip-grant-tables --old-passwords
mysql -u root