<?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&#039;s Notebook, A Programmers Journal</description>
	<lastBuildDate>Sun, 05 Feb 2012 14:13:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<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. [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><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>
<div class="shr-publisher-12"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.johnbernardabella.com/resetting-mysql-root-password/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

