<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Reset the root password on MySQL</title>
	<atom:link href="http://www.ubuntugeek.com/reset-the-root-password-on-mysql.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.ubuntugeek.com/reset-the-root-password-on-mysql.html</link>
	<description>Ubuntu Linux Tutorials,Howtos,Tips &#38; News &#124; Oneiric,Natty,Maverick</description>
	<lastBuildDate>Mon, 06 Feb 2012 15:40:01 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: cloud</title>
		<link>http://www.ubuntugeek.com/reset-the-root-password-on-mysql.html/comment-page-1#comment-117338</link>
		<dc:creator>cloud</dc:creator>
		<pubDate>Tue, 13 Dec 2011 22:33:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.ubuntugeek.com/reset-the-root-password-on-mysql.html#comment-117338</guid>
		<description>thanks! this solution works!</description>
		<content:encoded><![CDATA[<p>thanks! this solution works!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gauraw</title>
		<link>http://www.ubuntugeek.com/reset-the-root-password-on-mysql.html/comment-page-1#comment-109329</link>
		<dc:creator>gauraw</dc:creator>
		<pubDate>Tue, 13 Sep 2011 06:57:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.ubuntugeek.com/reset-the-root-password-on-mysql.html#comment-109329</guid>
		<description>You can reset the password as follows (At least it worked for me):
sudo /etc/init.d/mysql stop
sudo mysqld --skip-grant-tables &amp;
mysql -u root mysql
UPDATE user SET Password=PASSWORD(&#039;NEWPASSWORD&#039;) WHERE User=&#039;root&#039;; FLUSH PRIVILEGES; exit;</description>
		<content:encoded><![CDATA[<p>You can reset the password as follows (At least it worked for me):<br />
sudo /etc/init.d/mysql stop<br />
sudo mysqld --skip-grant-tables &amp;<br />
mysql -u root mysql<br />
UPDATE user SET Password=PASSWORD(&#8216;NEWPASSWORD&#8217;) WHERE User=&#8217;root&#8217;; FLUSH PRIVILEGES; exit;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: piar</title>
		<link>http://www.ubuntugeek.com/reset-the-root-password-on-mysql.html/comment-page-1#comment-93192</link>
		<dc:creator>piar</dc:creator>
		<pubDate>Sun, 27 Feb 2011 02:28:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.ubuntugeek.com/reset-the-root-password-on-mysql.html#comment-93192</guid>
		<description>i have change password in mysql but unfortunately now i am unable to log in in mysql.please help me as soon as possible.</description>
		<content:encoded><![CDATA[<p>i have change password in mysql but unfortunately now i am unable to log in in mysql.please help me as soon as possible.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: uzair</title>
		<link>http://www.ubuntugeek.com/reset-the-root-password-on-mysql.html/comment-page-1#comment-9492</link>
		<dc:creator>uzair</dc:creator>
		<pubDate>Thu, 28 May 2009 18:33:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.ubuntugeek.com/reset-the-root-password-on-mysql.html#comment-9492</guid>
		<description>nevermind, a bit of google-ing solved the issue.
For those of you also running into the same problem here&#039;s what you can do:

Your debian-sys-maint user&#039;s info is located in:
/etc/mysql/debian.cnf

copy the password that is there and do the same procedure as above, but this time make sure you change the password only for &#039;debian-sys-maint&#039; using the command mdmbkr suggested:
mysqld_safe --skip-grant-tables
mysql --user=root mysql
update user set Password=PASSWORD(&#039;&#039;) WHERE User=&#039;debian-sys-maint&#039;;
FLUSH PRIVILEGES;</description>
		<content:encoded><![CDATA[<p>nevermind, a bit of google-ing solved the issue.<br />
For those of you also running into the same problem here&#8217;s what you can do:</p>
<p>Your debian-sys-maint user&#8217;s info is located in:<br />
/etc/mysql/debian.cnf</p>
<p>copy the password that is there and do the same procedure as above, but this time make sure you change the password only for &#8216;debian-sys-maint&#8217; using the command mdmbkr suggested:<br />
mysqld_safe --skip-grant-tables<br />
mysql --user=root mysql<br />
update user set Password=PASSWORD(&#8221;) WHERE User=&#8217;debian-sys-maint&#8217;;<br />
FLUSH PRIVILEGES;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: uzair</title>
		<link>http://www.ubuntugeek.com/reset-the-root-password-on-mysql.html/comment-page-1#comment-9491</link>
		<dc:creator>uzair</dc:creator>
		<pubDate>Thu, 28 May 2009 18:18:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.ubuntugeek.com/reset-the-root-password-on-mysql.html#comment-9491</guid>
		<description>Please ignore this. Forgot to check the little checkbox to notify me of any replies :)</description>
		<content:encoded><![CDATA[<p>Please ignore this. Forgot to check the little checkbox to notify me of any replies <img src='http://www.ubuntugeek.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: uzair</title>
		<link>http://www.ubuntugeek.com/reset-the-root-password-on-mysql.html/comment-page-1#comment-9490</link>
		<dc:creator>uzair</dc:creator>
		<pubDate>Thu, 28 May 2009 18:13:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.ubuntugeek.com/reset-the-root-password-on-mysql.html#comment-9490</guid>
		<description>@Admin uhhh, that little command gave me the following error when I started it the server up again:
uzair@ubuntu:~$ sudo /etc/init.d/mysql restart
 * Stopping MySQL database server mysqld                                 [ OK ] 
 * Starting MySQL database server mysqld                                 [ OK ] 
 * Checking for corrupt, not cleanly closed and upgrade needing tables.
/usr/bin/mysqladmin: connect to server at &#039;localhost&#039; failed
error: &#039;Access denied for user &#039;debian-sys-maint&#039;@&#039;localhost&#039; (using password: YES)&#039;
uzair@ubuntu:~$ ERROR 1045 (28000): Access denied for user &#039;debian-sys-maint&#039;@&#039;localhost&#039; (using password: YES)

Is there anyway to reverse the effects if mdmbkr is correct about it changing all the passwords.
What&#039;s the default debian-sys-maint account&#039;s password?</description>
		<content:encoded><![CDATA[<p>@Admin uhhh, that little command gave me the following error when I started it the server up again:<br />
uzair@ubuntu:~$ sudo /etc/init.d/mysql restart<br />
 * Stopping MySQL database server mysqld                                 [ OK ]<br />
 * Starting MySQL database server mysqld                                 [ OK ]<br />
 * Checking for corrupt, not cleanly closed and upgrade needing tables.<br />
/usr/bin/mysqladmin: connect to server at &#8216;localhost&#8217; failed<br />
error: &#8216;Access denied for user &#8216;debian-sys-maint&#8217;@'localhost&#8217; (using password: YES)&#8217;<br />
uzair@ubuntu:~$ ERROR 1045 (28000): Access denied for user &#8216;debian-sys-maint&#8217;@'localhost&#8217; (using password: YES)</p>
<p>Is there anyway to reverse the effects if mdmbkr is correct about it changing all the passwords.<br />
What&#8217;s the default debian-sys-maint account&#8217;s password?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cspr</title>
		<link>http://www.ubuntugeek.com/reset-the-root-password-on-mysql.html/comment-page-1#comment-2530</link>
		<dc:creator>cspr</dc:creator>
		<pubDate>Tue, 21 Oct 2008 07:54:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.ubuntugeek.com/reset-the-root-password-on-mysql.html#comment-2530</guid>
		<description>@mdmbkr lol!;) just tell me how to run that query without knowing your password to connect to the server!</description>
		<content:encoded><![CDATA[<p>@mdmbkr lol!;) just tell me how to run that query without knowing your password to connect to the server!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mdmbkr</title>
		<link>http://www.ubuntugeek.com/reset-the-root-password-on-mysql.html/comment-page-1#comment-2527</link>
		<dc:creator>mdmbkr</dc:creator>
		<pubDate>Wed, 16 Jul 2008 18:52:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.ubuntugeek.com/reset-the-root-password-on-mysql.html#comment-2527</guid>
		<description>The above advice will change ALL of the mysql users&#039; passwords!  You only want to change the password for the user named &#039;root&#039;, so add that constraint:

update user set Password=PASSWORD(’new-password’) WHERE User=&#039;root&#039;;</description>
		<content:encoded><![CDATA[<p>The above advice will change ALL of the mysql users&#8217; passwords!  You only want to change the password for the user named &#8216;root&#8217;, so add that constraint:</p>
<p>update user set Password=PASSWORD(’new-password’) WHERE User=&#8217;root&#8217;;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://www.ubuntugeek.com/reset-the-root-password-on-mysql.html/comment-page-1#comment-2529</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Thu, 10 Jul 2008 05:14:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.ubuntugeek.com/reset-the-root-password-on-mysql.html#comment-2529</guid>
		<description>try the following procedure

Log in as root and stop the mysql daemon. Now lets start up the mysql daemon and skip the grant tables which store the passwords.

mysqld_safe &lt;code&gt;--&lt;/code&gt;skip-grant-tables

You should see mysqld start up successfully. If not, well you have bigger issues. Now you should be able to connect to mysql without a password.

mysql &lt;code&gt;--&lt;/code&gt;user=root mysql

update user set Password=PASSWORD(&#039;new-password&#039;);
flush privileges;
exit;

Now kill your running mysqld, then restart it normally. You should be good to go. Try not to forget your password again.</description>
		<content:encoded><![CDATA[<p>try the following procedure</p>
<p>Log in as root and stop the mysql daemon. Now lets start up the mysql daemon and skip the grant tables which store the passwords.</p>
<p>mysqld_safe <code>--</code>skip-grant-tables</p>
<p>You should see mysqld start up successfully. If not, well you have bigger issues. Now you should be able to connect to mysql without a password.</p>
<p>mysql <code>--</code>user=root mysql</p>
<p>update user set Password=PASSWORD(&#8216;new-password&#8217;);<br />
flush privileges;<br />
exit;</p>
<p>Now kill your running mysqld, then restart it normally. You should be good to go. Try not to forget your password again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: buck</title>
		<link>http://www.ubuntugeek.com/reset-the-root-password-on-mysql.html/comment-page-1#comment-2528</link>
		<dc:creator>buck</dc:creator>
		<pubDate>Wed, 09 Jul 2008 22:38:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.ubuntugeek.com/reset-the-root-password-on-mysql.html#comment-2528</guid>
		<description>Same here... did you ever find an answer to why the &#039;reset-password&#039; does not work?</description>
		<content:encoded><![CDATA[<p>Same here&#8230; did you ever find an answer to why the &#8216;reset-password&#8217; does not work?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ehcomunicacion</title>
		<link>http://www.ubuntugeek.com/reset-the-root-password-on-mysql.html/comment-page-1#comment-2526</link>
		<dc:creator>ehcomunicacion</dc:creator>
		<pubDate>Mon, 07 Jul 2008 17:33:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.ubuntugeek.com/reset-the-root-password-on-mysql.html#comment-2526</guid>
		<description>I can reset my password. &#039;reset-password&#039; command is not on my debian-etch. it says me:
Usage: /etc/init.d/mysql start&#124;stop&#124;restart&#124;reload&#124;force-reload&#124;status</description>
		<content:encoded><![CDATA[<p>I can reset my password. &#8216;reset-password&#8217; command is not on my debian-etch. it says me:<br />
Usage: /etc/init.d/mysql start|stop|restart|reload|force-reload|status</p>
]]></content:encoded>
	</item>
</channel>
</rss>

