<?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>cogitsolution &#187; root password</title>
	<atom:link href="http://www.cogitsolutions.com/blog/tag/root-password/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cogitsolutions.com/blog</link>
	<description>Customized, Optimized, Generalized Solutions</description>
	<lastBuildDate>Thu, 08 Dec 2011 04:48:55 +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 a forgotten MySQL root password</title>
		<link>http://www.cogitsolutions.com/blog/2009/03/resetting-a-forgotten-mysql-root-password/</link>
		<comments>http://www.cogitsolutions.com/blog/2009/03/resetting-a-forgotten-mysql-root-password/#comments</comments>
		<pubDate>Wed, 18 Mar 2009 06:47:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[reset root password]]></category>
		<category><![CDATA[root password]]></category>

		<guid isPermaLink="false">http://www.cogitsolutions.com/blog/?p=18</guid>
		<description><![CDATA[
Stop mysqld and restart it with the                 --skip-grant-tables option.

to start use # /usr/bin/mysqld_safe --skip-grant-tables

Connect to the mysqld server with                 this command:(you may have [...]]]></description>
			<content:encoded><![CDATA[<ol type="1">
<li>Stop <a title="4.3.1. mysqld — The MySQL Server" href="http://dev.mysql.com/doc/refman/5.1/en/mysqld.html"><span><strong class="command">mysqld</strong></span></a> and restart it with the                 <a href="http://dev.mysql.com/doc/refman/5.1/en/server-options.html#option_mysqld_skip-grant-tables"><code class="option">--skip-grant-tables</code></a> option.</li>
<li>
<pre>to start use # /usr/bin/mysqld_safe --skip-grant-tables</pre>
</li>
<li>Connect to the <a title="4.3.1. mysqld — The MySQL Server" href="http://dev.mysql.com/doc/refman/5.1/en/mysqld.html"><span><strong class="command">mysqld</strong></span></a> server with                 this command:(you may have to use new shell / window for this)
<pre class="programlisting">shell&gt; <strong class="userinput"><code>mysql</code></strong></pre>
</li>
<li>Issue the following statements in the                 <a title="4.5.1. mysql — The MySQL Command-Line Tool" href="http://dev.mysql.com/doc/refman/5.1/en/mysql.html"><span><strong class="command">mysql</strong></span></a> client. Replace the password                 with the password that you want to use.
<pre class="programlisting">mysql&gt; <strong class="userinput"><code>UPDATE mysql.user SET Password=PASSWORD('MyNewPass')</code></strong>
    -&gt;                   <strong class="userinput"><code>WHERE User='root';</code></strong>
mysql&gt; <strong class="userinput"><code>FLUSH PRIVILEGES;</code></strong></pre>
</li>
<li><span class="userinput">stop mysqld server</span><strong class="userinput"> </strong><span class="userinput">using</span><strong class="userinput"> service mysqld stop -</strong><span style="text-decoration: underline;"><span class="userinput"> <em>make sure to stop and restart so that new service will be password protected</em></span></span><strong class="userinput"><br />
</strong></li>
<li><span class="userinput">restart </span><span class="userinput">server </span><strong class="userinput">with service mysqld start<br />
</strong></li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.cogitsolutions.com/blog/2009/03/resetting-a-forgotten-mysql-root-password/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

