<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>John Bernard Abella [blog] &#187; mysql root password</title>
	<atom:link href="http://www.johnbernardabella.com/tag/mysql-root-password/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.johnbernardabella.com</link>
	<description>A System Admin's Notebook, A Progrmmers Journal</description>
	<lastBuildDate>Wed, 16 Jun 2010 13:27:02 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Resetting Mysql root Password</title>
		<link>http://www.johnbernardabella.com/resetting-mysql-root-password/</link>
		<comments>http://www.johnbernardabella.com/resetting-mysql-root-password/#comments</comments>
		<pubDate>Wed, 06 Feb 2008 12:37:59 +0000</pubDate>
		<dc:creator>jba_21</dc:creator>
				<category><![CDATA[Linux Help]]></category>
		<category><![CDATA[PHP Programming]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[mysql root password]]></category>
		<category><![CDATA[mysqld password]]></category>
		<category><![CDATA[recover mysql password]]></category>
		<category><![CDATA[recover password]]></category>
		<category><![CDATA[reset password]]></category>
		<category><![CDATA[root password]]></category>

		<guid isPermaLink="false">http://www.johnbernardabella.com/2008/02/06/resetting-mysql-root-password/</guid>
		<description><![CDATA[&#8216;Like locking your keys in the car, to forget your password after
you&#8217;ve spent an hour installing and tweaking a new MySQL server can be
an embarassment to say the least.&#8217;

Fortunately, if you have root access to that computer, all in NOT lost.
Here are the steps when you found yourself in this situation.
1. Kill the server process.
% [...]]]></description>
			<content:encoded><![CDATA[<p>&#8216;Like locking your keys in the car, to forget your password after<br />
you&#8217;ve spent an hour installing and tweaking a new MySQL server can be<br />
an embarassment to say the least.&#8217;<br />
<br />
Fortunately, if you have root access to that computer, all in NOT lost.</p>
<p>Here are the steps when you found yourself in this situation.</p>
<p>1. Kill the server process.<br />
<code>% kill pid</code><br />
(where pid is the process id. Do not use kill -9 unless absolutely<br />
necessary, as this may damage your table files)</p>
<p>2. Run safe-mysqld with the &#8211;skip-grant-tables command line option.<br />
(This instructs the MySQL server to allow unrestricted access to<br />
anyone) NOTE: restrict all remote access before issuing this command<br />
<code>% safe-mysqld --skip-grant-table</code></p>
<p>3. Change root password<br />
<code>mysql &gt; use mysql;<br />
mysql &gt; update user set password = password('newpassword') where user<br />
= 'root';</code><br />
<br />
4. Disconnect and instruct the mysql server to reload the grants<br />
tables to begin requiring passwords.<br />
<code>% mysqladmin flush-privileges</code></p>
<p>&#8220;That does it &#8212; and nobody ever has to know what you did. As for<br />
locking your keys in your car, you&#8217;re on your own there.&#8221;</p>
<p>Must have for php-mysql beginners developers.</p>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand sexy-bookmarks-center sexy-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="sexy-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://www.johnbernardabella.com/resetting-mysql-root-password/&amp;t=Resetting+Mysql+root+Password" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=Resetting+Mysql+root+Password+-+http://b2l.me/ccvhu+(via+@jbabella)" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="sexy-linkedin">
			<a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://www.johnbernardabella.com/resetting-mysql-root-password/&amp;title=Resetting+Mysql+root+Password&amp;summary=%27Like%20locking%20your%20keys%20in%20the%20car%2C%20to%20forget%20your%20password%20after%0D%0Ayou%27ve%20spent%20an%20hour%20installing%20and%20tweaking%20a%20new%20MySQL%20server%20can%20be%0D%0Aan%20embarassment%20to%20say%20the%20least.%27%0D%0A%5Bad%23squere-ads%5D%0D%0AFortunately%2C%20if%20you%20have%20root%20access%20to%20that%20computer%2C%20all%20in%20NOT%20lost.%0D%0A%0D%0AHere%20are%20the%20steps%20when%20you%20found&amp;source=John Bernard Abella [blog]" rel="nofollow" class="external" title="Share this on Linkedin">Share this on Linkedin</a>
		</li>
		<li class="sexy-blogger">
			<a href="http://www.blogger.com/blog_this.pyra?t&amp;u=http://www.johnbernardabella.com/resetting-mysql-root-password/&amp;n=Resetting+Mysql+root+Password&amp;pli=1" rel="nofollow" class="external" title="Blog this on Blogger">Blog this on Blogger</a>
		</li>
		<li class="sexy-delicious">
			<a href="http://del.icio.us/post?url=http://www.johnbernardabella.com/resetting-mysql-root-password/&amp;title=Resetting+Mysql+root+Password" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-technorati">
			<a href="http://technorati.com/faves?add=http://www.johnbernardabella.com/resetting-mysql-root-password/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="sexy-comfeed">
			<a href="http://www.johnbernardabella.com/resetting-mysql-root-password/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="sexy-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.johnbernardabella.com/resetting-mysql-root-password/&amp;title=Resetting+Mysql+root+Password" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-diigo">
			<a href="http://www.diigo.com/post?url=http://www.johnbernardabella.com/resetting-mysql-root-password/&amp;title=Resetting+Mysql+root+Password&amp;desc=%27Like%20locking%20your%20keys%20in%20the%20car%2C%20to%20forget%20your%20password%20after%0D%0Ayou%27ve%20spent%20an%20hour%20installing%20and%20tweaking%20a%20new%20MySQL%20server%20can%20be%0D%0Aan%20embarassment%20to%20say%20the%20least.%27%0D%0A%5Bad%23squere-ads%5D%0D%0AFortunately%2C%20if%20you%20have%20root%20access%20to%20that%20computer%2C%20all%20in%20NOT%20lost.%0D%0A%0D%0AHere%20are%20the%20steps%20when%20you%20found" rel="nofollow" class="external" title="Post this on Diigo">Post this on Diigo</a>
		</li>
		<li class="sexy-reddit">
			<a href="http://reddit.com/submit?url=http://www.johnbernardabella.com/resetting-mysql-root-password/&amp;title=Resetting+Mysql+root+Password" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="sexy-yahoobuzz">
			<a href="http://buzz.yahoo.com/submit/?submitUrl=http://www.johnbernardabella.com/resetting-mysql-root-password/&amp;submitHeadline=Resetting+Mysql+root+Password&amp;submitSummary=%27Like%20locking%20your%20keys%20in%20the%20car%2C%20to%20forget%20your%20password%20after%0D%0Ayou%27ve%20spent%20an%20hour%20installing%20and%20tweaking%20a%20new%20MySQL%20server%20can%20be%0D%0Aan%20embarassment%20to%20say%20the%20least.%27%0D%0A%5Bad%23squere-ads%5D%0D%0AFortunately%2C%20if%20you%20have%20root%20access%20to%20that%20computer%2C%20all%20in%20NOT%20lost.%0D%0A%0D%0AHere%20are%20the%20steps%20when%20you%20found&amp;submitCategory=science&amp;submitAssetType=text" rel="nofollow" class="external" title="Buzz up!">Buzz up!</a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.johnbernardabella.com/resetting-mysql-root-password/&amp;title=Resetting+Mysql+root+Password" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="sexy-myspace">
			<a href="http://www.myspace.com/Modules/PostTo/Pages/?u=http://www.johnbernardabella.com/resetting-mysql-root-password/&amp;t=Resetting+Mysql+root+Password" rel="nofollow" class="external" title="Post this to MySpace">Post this to MySpace</a>
		</li>
		<li class="sexy-hyves">
			<a href="http://www.hyves.nl/profilemanage/add/tips/?name=Resetting+Mysql+root+Password&amp;text=%27Like%20locking%20your%20keys%20in%20the%20car%2C%20to%20forget%20your%20password%20after%0D%0Ayou%27ve%20spent%20an%20hour%20installing%20and%20tweaking%20a%20new%20MySQL%20server%20can%20be%0D%0Aan%20embarassment%20to%20say%20the%20least.%27%0D%0A%5Bad%23squere-ads%5D%0D%0AFortunately%2C%20if%20you%20have%20root%20access%20to%20that%20computer%2C%20all%20in%20NOT%20lost.%0D%0A%0D%0AHere%20are%20the%20steps%20when%20you%20found+-+http://www.johnbernardabella.com/resetting-mysql-root-password/&amp;rating=5" rel="nofollow" class="external" title="Share this on Hyves">Share this on Hyves</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

]]></content:encoded>
			<wfw:commentRss>http://www.johnbernardabella.com/resetting-mysql-root-password/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
