<?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>Making Life Simple &#187; mysql</title>
	<atom:link href="http://www.lalitmehta.com/home/category/mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.lalitmehta.com/home</link>
	<description></description>
	<lastBuildDate>Tue, 09 Feb 2010 21:36:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Recover MySQL root password</title>
		<link>http://www.lalitmehta.com/home/2008/12/26/recover-mysql-root-password/</link>
		<comments>http://www.lalitmehta.com/home/2008/12/26/recover-mysql-root-password/#comments</comments>
		<pubDate>Fri, 26 Dec 2008 16:10:53 +0000</pubDate>
		<dc:creator>lalit</dc:creator>
				<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://www.lalitmehta.com/home/?p=63</guid>
		<description><![CDATA[You can recover MySQL database server password with following five easy steps. Step # 1: Stop the MySQL server process. Step # 2: Start the MySQL (mysqld) server/daemon process with the &#8211;skip-grant-tables option so that it will not prompt for password Step # 3: Connect to mysql server as the root user Step # 4: [...]]]></description>
			<content:encoded><![CDATA[<p>You can recover MySQL database server password with following five easy steps.<br />
Step # 1: Stop the MySQL server process.<br />
Step # 2: Start the MySQL (mysqld) server/daemon process with the &#8211;skip-grant-tables option so that it will not prompt for password<br />
Step # 3: Connect to mysql server as the root user<br />
Step # 4: Setup new root password<br />
Step # 5: Exit and restart MySQL server</p>
<p>Here are commands you need to type for each step (login as the root user):<br />
Step # 1 : Stop mysql service<br />
<code># /etc/init.d/mysql stop</code><br />
Output:<br />
<code>Stopping MySQL database server: mysqld.</code></p>
<p>Step # 2: Start to MySQL server w/o password:<br />
<code># mysqld_safe --skip-grant-tables &amp;</code><br />
Output:<br />
<code>[1] 5988<br />
Starting mysqld daemon with databases from /var/lib/mysql<br />
mysqld_safe[6025]: started</code></p>
<p>Step # 3: Connect to mysql server using mysql client:<br />
<code># mysql -u root</code><br />
Output:<br />
<code>Welcome to the MySQL monitor.  Commands end with ; or \g.<br />
Your MySQL connection id is 1 to server version: 4.1.15-Debian_1-log</code></p>
<p>Type &#8216;help;&#8217; or &#8216;\h&#8217; for help. Type &#8216;\c&#8217; to clear the buffer.</p>
<p>mysql&gt;</p>
<p>Step # 4: Setup new MySQL root user password<br />
<code>mysql&gt; use mysql;<br />
mysql&gt; update user set password=PASSWORD("NEW-ROOT-PASSWORD") where User='root';<br />
mysql&gt; flush privileges;<br />
mysql&gt; quit</code></p>
<p>Step # 5: Stop MySQL Server:<br />
<code># /etc/init.d/mysql stop</code><br />
Output:<br />
<code>Stopping MySQL database server: mysqld<br />
STOPPING server from pid file /var/run/mysqld/mysqld.pid<br />
mysqld_safe[6186]: ended</code></p>
<p>[1]+  Done                    mysqld_safe &#8211;skip-grant-tables</p>
<p>Step # 6: Start MySQL server and test it<br />
<code># /etc/init.d/mysql start<br />
# mysql -u root -p</code></p>
<p><a href="http://www.cyberciti.biz/tips/recover-mysql-root-password.html" target="_blank">original post</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.lalitmehta.com/home/2008/12/26/recover-mysql-root-password/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
