/etc/init.d/mysqld stop
/usr/bin/mysqld_safe --skip-grant-tables &
mysql --user=root mysql
mysql> UPDATE user SET password=PASSWORD('new-password-here') WHERE user='root';
mysql> FLUSH PRIVILEGES;
/etc/init.d/mysqld restart
Send me your comments!
Something didn't work as expected?
You'd like to add some useful info to this tip?
Use the form below to send me your comments.
(Don't forget to fill out the super-lame CAPTCHA below..)
Send me your comments!
Something didn't work as expected? You'd like to add some useful info to this tip? Use the form below to send me your comments. (Don't forget to fill out the super-lame CAPTCHA below..)