<?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>My Own Percept&#187; mysql</title>
	<atom:link href="http://myownpercept.com/tag/mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://myownpercept.com</link>
	<description>&#34;Only in quiet waters things mirror themselves undistorted. Only in a quiet mind is adequate perception of the world.&#34;~Hans Margolius</description>
	<lastBuildDate>Fri, 30 Mar 2012 16:42:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>ERROR 1045 (28000): Access denied for user &#8216;root&#8217;@&#039;localhost&#8217; (using password: NO)</title>
		<link>http://myownpercept.com/2009/07/error-1045-28000-access-denied-for-user-root/</link>
		<comments>http://myownpercept.com/2009/07/error-1045-28000-access-denied-for-user-root/#comments</comments>
		<pubDate>Mon, 27 Jul 2009 14:10:29 +0000</pubDate>
		<dc:creator>Marouan OMEZZINE</dc:creator>
				<category><![CDATA[how-to]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://www.myownpercept.com/?p=274</guid>
		<description><![CDATA[<p>Today I got the error below : after typing : I don&#8217;t know why ? but I know how to solve it. First of all let&#8217;s disable password authentication : Stop your MySQL daemon: or Then run the following command line in background : Secondly run : Finally, In your MySQL command line prompt issue [...]</p>
 ]]></description>
			<content:encoded><![CDATA[<p>Today I got the error below :</p><pre class="crayon-plain-tag">ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)</pre><p></p>
<p>after typing :</p><pre class="crayon-plain-tag">mysql -u root</pre><p></p>
<p>I don&#8217;t know why ? but I know how to solve it.<br />
First of all let&#8217;s disable password authentication :<br />
Stop your MySQL daemon:</p><pre class="crayon-plain-tag">/etc/init.d/mysql stop</pre><p>or</p><pre class="crayon-plain-tag">/etc/init.d/mysqld stop</pre><p></p>
<p>Then run the following command line in background :</p><pre class="crayon-plain-tag">mysqld_safe --skip-grant-tables &amp;</pre><p></p>
<p>Secondly run :</p><pre class="crayon-plain-tag">mysql -u root</pre><p></p>
<p>Finally, In your MySQL command line prompt issue the following command:</p>
<p></p><pre class="crayon-plain-tag">USE mysql;
UPDATE user SET password=PASSWORD(&quot;my_password&quot;) WHERE user=&quot;root&quot;;
FLUSH PRIVILEGES;
EXIT</pre><p></p>
<p>Password is now reset to <strong>my_password</strong>. So just restart your MySQL server using :</p>
<p></p><pre class="crayon-plain-tag">/etc/init.d/mysql restart</pre><p>or</p><pre class="crayon-plain-tag">/etc/init.d/mysqld restart</pre><p></p>
<p>and use your new password to authenticate : </p>
<p></p><pre class="crayon-plain-tag">mysql -u root -p</pre><p></p>
<p>All that remains is to enter your password.</p>
]]></content:encoded>
			<wfw:commentRss>http://myownpercept.com/2009/07/error-1045-28000-access-denied-for-user-root/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

