Thursday, October 11, 2012

Wednesday, October 3, 2012

Reset mysql root password!

sudo /etc/init.d/mysql stop
sudo mysqld --skip-grant-tables &
mysql -u root mysql
UPDATE user SET Password=PASSWORD('new-pwd') WHERE User='root'; FLUSH PRIVILEGES; exit;