How to reset MySQL root Password
Here is how you can reset forgotten root password,
Be aware that following will reset your root password:
# /etc/init.d/mysql stop
# /usr/bin/mysqld_safe –skip-grant-tables –skip-networking &
# mysql -u root
mysql> use mysql;
mysql> UPDATE user SET Password=PASSWORD(“your password here”) WHERE User=”root”;
mysql> exit
# /etc/init.d/mysql stop
# /etc/init.d/mysql start
Pay attention that, mysql can be in different folders depending on the installation, for different linux version the way you can start or stop the mysql can very.
For fedora or CentOS:
#service mysqld start #service mysqld stop
etc..








February 4th, 2009 at 4:31 pm
Handy tip
September 8th, 2009 at 2:20 pm
Good post,This was exactly what I needed to read today! I am sure this has relevance to many of us out there.
April 20th, 2010 at 2:50 pm
CrazyPurchase.com is a Leading Worldwide Wholesaler and Supplier of Wholesale Clothing, Jewellery, Cell Phone and Much more!
June 17th, 2010 at 2:09 pm
It’s a good post
June 17th, 2010 at 2:11 pm
great.It’s useful fou me. thank you
June 17th, 2010 at 2:12 pm
thanks for sharing it with us
June 21st, 2010 at 3:17 am
thanks for sharing it with us
June 21st, 2010 at 3:17 am
putrahosting.com dapur hosting hemat
June 21st, 2010 at 3:18 am
hosting murah indonesia indositehost.com
June 21st, 2010 at 3:19 am
negeriads.com solusi berpromosi
June 22nd, 2010 at 7:13 am
Hi .. thanks for sharing it with us ..