Resetting MySQL password

Issue :

How to reset MySQL ‘root’ password ?

Solution :

-> Stop the mysql daemon.

/etc/init.d/mysqld stop

-> Run the following commands :

mysqld_safe –skip-grant-tables &
mysql -u root
mysql> use mysql;
mysql> update user set password=PASSWORD(“newrootpassword”) where User=’root’;
mysql> flush privileges;
mysql> quit

-> Restart the service.

/etc/init.d/mysqld stop
/etc/init.d/mysqld start

Filed Under: Quick fixesTechnical

Tags:

About the Author: InstaCarma is a provider of Enterprise Class Solutions for the Hosting Industry

RSSComments (0)

Trackback URL

Leave a Reply

Get Adobe Flash playerPlugin by wpburn.com wordpress themes
InstaCarma provides outsourced web hosting technical support, helpdesk management, datacenter automation, cloud service management. Sales - 1800 810 6547 - visit www.instacarma.com