eskp.net


Resetting MySQL root Password

service mysql stop
mysqld --skip-grant-tables --skip-networking &
mysql
update mysql.user set password=password('newpass') where user='root';
flush privileges;
^D
kill `pgrep mysql`
service mysql start