<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: (my) Solution to the infamous ERROR 2002 (HY000): Can&#8217;t connect to local MySQL server through socket &#8216;/var/lib/mysql/mysql.sock&#8217; (2)</title>
	<atom:link href="http://www.alexle.net/archives/149/feed" rel="self" type="application/rss+xml" />
	<link>http://alexle.net/archives/149</link>
	<description>Personal View</description>
	<pubDate>Tue, 07 Feb 2012 07:23:11 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5</generator>
		<item>
		<title>By: Isa Mujahid</title>
		<link>http://alexle.net/archives/149#comment-252065</link>
		<dc:creator>Isa Mujahid</dc:creator>
		<pubDate>Fri, 20 Mar 2009 15:48:06 +0000</pubDate>
		<guid isPermaLink="false">http://alexle.net/archives/149#comment-252065</guid>
		<description>Thanks verymuch Alex!
so, I can fix my "MySQL" new installation in slackware.
in future time i'll cite your site and translate in Indonesian language.</description>
		<content:encoded><![CDATA[<p>Thanks verymuch Alex!<br />
so, I can fix my &#8220;MySQL&#8221; new installation in slackware.<br />
in future time i&#8217;ll cite your site and translate in Indonesian language.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Abhishek</title>
		<link>http://alexle.net/archives/149#comment-183481</link>
		<dc:creator>Abhishek</dc:creator>
		<pubDate>Tue, 15 Jul 2008 11:28:17 +0000</pubDate>
		<guid isPermaLink="false">http://alexle.net/archives/149#comment-183481</guid>
		<description>I got the fix just putting it down in case somebody encounters the issue

service mysql stop

wait until MySQL shuts down. Then run

mysqld_safe --skip-grant-tables &#38;

then you will be able to login as root with no password.

mysql -uroot mysql

In MySQL command line prompt issue the following command:

UPDATE user SET password=PASSWORD("abcd") WHERE user="root";
FLUSH PRIVILEGES;
EXIT

/etc/init.d/mysqld restart

At this time your root password is reset to "abcd" and MySQL will now
know the privileges and you'll be able to login with your new password:

mysql -uroot -p mysql</description>
		<content:encoded><![CDATA[<p>I got the fix just putting it down in case somebody encounters the issue</p>
<p>service mysql stop</p>
<p>wait until MySQL shuts down. Then run</p>
<p>mysqld_safe &#8211;skip-grant-tables &amp;</p>
<p>then you will be able to login as root with no password.</p>
<p>mysql -uroot mysql</p>
<p>In MySQL command line prompt issue the following command:</p>
<p>UPDATE user SET password=PASSWORD(&#8221;abcd&#8221;) WHERE user=&#8221;root&#8221;;<br />
FLUSH PRIVILEGES;<br />
EXIT</p>
<p>/etc/init.d/mysqld restart</p>
<p>At this time your root password is reset to &#8220;abcd&#8221; and MySQL will now<br />
know the privileges and you&#8217;ll be able to login with your new password:</p>
<p>mysql -uroot -p mysql</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Abhishek</title>
		<link>http://alexle.net/archives/149#comment-183479</link>
		<dc:creator>Abhishek</dc:creator>
		<pubDate>Tue, 15 Jul 2008 11:15:55 +0000</pubDate>
		<guid isPermaLink="false">http://alexle.net/archives/149#comment-183479</guid>
		<description>Hi Alex,

My 1st problem of : Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
got fixed by editing the /etc/my.cnf but now i am getting the following error

#./mysql -u root 
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES}

Is there any fix to this issue</description>
		<content:encoded><![CDATA[<p>Hi Alex,</p>
<p>My 1st problem of : Can&#8217;t connect to local MySQL server through socket &#8216;/tmp/mysql.sock&#8217; (2)<br />
got fixed by editing the /etc/my.cnf but now i am getting the following error</p>
<p>#./mysql -u root<br />
ERROR 1045 (28000): Access denied for user &#8216;root&#8217;@'localhost&#8217; (using password: YES}</p>
<p>Is there any fix to this issue</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob</title>
		<link>http://alexle.net/archives/149#comment-128170</link>
		<dc:creator>Rob</dc:creator>
		<pubDate>Wed, 12 Mar 2008 04:45:29 +0000</pubDate>
		<guid isPermaLink="false">http://alexle.net/archives/149#comment-128170</guid>
		<description>Try commenting out the 'basedir' directive in your mysql config(my.cnf)

[mysql.server]
user=mysql
#basedir=/var/lib

Worked for me.</description>
		<content:encoded><![CDATA[<p>Try commenting out the &#8216;basedir&#8217; directive in your mysql config(my.cnf)</p>
<p>[mysql.server]<br />
user=mysql<br />
#basedir=/var/lib</p>
<p>Worked for me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Abdul Khadar</title>
		<link>http://alexle.net/archives/149#comment-105741</link>
		<dc:creator>Abdul Khadar</dc:creator>
		<pubDate>Thu, 24 Jan 2008 05:00:40 +0000</pubDate>
		<guid isPermaLink="false">http://alexle.net/archives/149#comment-105741</guid>
		<description>This is not working. please find a solution for this. First mysql was working fine in my system. With GUI I stopped my sql service. After that this problem started. 

I have reinstalled mysql still it is same problem. please try to give us solution for this. if any body know solution pleasee send mail me.

Advanced thanks.</description>
		<content:encoded><![CDATA[<p>This is not working. please find a solution for this. First mysql was working fine in my system. With GUI I stopped my sql service. After that this problem started. </p>
<p>I have reinstalled mysql still it is same problem. please try to give us solution for this. if any body know solution pleasee send mail me.</p>
<p>Advanced thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bhau</title>
		<link>http://alexle.net/archives/149#comment-66055</link>
		<dc:creator>Bhau</dc:creator>
		<pubDate>Mon, 15 Oct 2007 10:33:03 +0000</pubDate>
		<guid isPermaLink="false">http://alexle.net/archives/149#comment-66055</guid>
		<description>I am using Solaris OS and have installed mysql. I have tried the work around mentioned above, changes in my.cnf and all. Nothing is working for me. The socket is not being created at all.
Please let me know how to proceed</description>
		<content:encoded><![CDATA[<p>I am using Solaris OS and have installed mysql. I have tried the work around mentioned above, changes in my.cnf and all. Nothing is working for me. The socket is not being created at all.<br />
Please let me know how to proceed</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: adam</title>
		<link>http://alexle.net/archives/149#comment-56023</link>
		<dc:creator>adam</dc:creator>
		<pubDate>Mon, 10 Sep 2007 03:59:24 +0000</pubDate>
		<guid isPermaLink="false">http://alexle.net/archives/149#comment-56023</guid>
		<description>I am very new to mysql and I am in early stages of trying to learn about it. I attempted to see if the application was functional by typing mysql test  and this is what I get:

ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)

I have edited my /etc/my.cnf file with your tips but to no avail. I'm so confused and desire a resolution to it. Originally, I was attempting to learn about MRTG and Cacti and since their dependent on Mysql; I thought perhaps this might be the source of my problems with their lack of functionailty. These are my current specs:
 
[root@Plutonium home]# cat /etc/redhat-release
CentOS release 4.5 (Final)
[root@Plutonium home]# uname -a
Linux Plutonium 2.6.9-55.0.6.EL #1 Tue Sep 4 21:10:58 EDT 2007 i686 athlon i386 GNU/Linux
[root@Plutonium home]# mysql -V
mysql  Ver 14.7 Distrib 4.1.20, for redhat-linux-gnu (i686) using readline 4.3
[root@Plutonium home]# rpm -q mysql
mysql-4.1.20-2.RHEL4.1.0.1
[root@Plutonium home]#

I hope you can point me in the right direction. I have some books but they don't cover this error. Also I'm a noob which doesn't help but everyone has to start somewhere. An intelligent non-condecending response would be appreciated. Thank you for your time.

Regards, 
Adam</description>
		<content:encoded><![CDATA[<p>I am very new to mysql and I am in early stages of trying to learn about it. I attempted to see if the application was functional by typing mysql test  and this is what I get:</p>
<p>ERROR 2002 (HY000): Can&#8217;t connect to local MySQL server through socket &#8216;/var/lib/mysql/mysql.sock&#8217; (2)</p>
<p>I have edited my /etc/my.cnf file with your tips but to no avail. I&#8217;m so confused and desire a resolution to it. Originally, I was attempting to learn about MRTG and Cacti and since their dependent on Mysql; I thought perhaps this might be the source of my problems with their lack of functionailty. These are my current specs:</p>
<p>[root@Plutonium home]# cat /etc/redhat-release<br />
CentOS release 4.5 (Final)<br />
[root@Plutonium home]# uname -a<br />
Linux Plutonium 2.6.9-55.0.6.EL #1 Tue Sep 4 21:10:58 EDT 2007 i686 athlon i386 GNU/Linux<br />
[root@Plutonium home]# mysql -V<br />
mysql  Ver 14.7 Distrib 4.1.20, for redhat-linux-gnu (i686) using readline 4.3<br />
[root@Plutonium home]# rpm -q mysql<br />
mysql-4.1.20-2.RHEL4.1.0.1<br />
[root@Plutonium home]#</p>
<p>I hope you can point me in the right direction. I have some books but they don&#8217;t cover this error. Also I&#8217;m a noob which doesn&#8217;t help but everyone has to start somewhere. An intelligent non-condecending response would be appreciated. Thank you for your time.</p>
<p>Regards,<br />
Adam</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jack Hill</title>
		<link>http://alexle.net/archives/149#comment-27111</link>
		<dc:creator>Jack Hill</dc:creator>
		<pubDate>Tue, 01 May 2007 01:24:00 +0000</pubDate>
		<guid isPermaLink="false">http://alexle.net/archives/149#comment-27111</guid>
		<description>Hey Alex,

I'm new to the terminal codes and such, and just my luck mysql has the ERROR 2002. I am using the default mysql server with my macbook. I read that another user got there problem solved on a macbook by using your method and am wondering if you could help me with a step by step process on how to create that file.

Thanks alot</description>
		<content:encoded><![CDATA[<p>Hey Alex,</p>
<p>I&#8217;m new to the terminal codes and such, and just my luck mysql has the ERROR 2002. I am using the default mysql server with my macbook. I read that another user got there problem solved on a macbook by using your method and am wondering if you could help me with a step by step process on how to create that file.</p>
<p>Thanks alot</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jessica</title>
		<link>http://alexle.net/archives/149#comment-17824</link>
		<dc:creator>Jessica</dc:creator>
		<pubDate>Mon, 05 Mar 2007 19:31:03 +0000</pubDate>
		<guid isPermaLink="false">http://alexle.net/archives/149#comment-17824</guid>
		<description>Thanks so much for the help!!! Ohman, I've been working on setting up this L.A.M.P. server for a while. I'm a second year college student and didn't really even know what I didn't know in order to fix the problem. This is great! Thanks!</description>
		<content:encoded><![CDATA[<p>Thanks so much for the help!!! Ohman, I&#8217;ve been working on setting up this L.A.M.P. server for a while. I&#8217;m a second year college student and didn&#8217;t really even know what I didn&#8217;t know in order to fix the problem. This is great! Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard Buchgraber</title>
		<link>http://alexle.net/archives/149#comment-15904</link>
		<dc:creator>Richard Buchgraber</dc:creator>
		<pubDate>Wed, 07 Feb 2007 13:47:30 +0000</pubDate>
		<guid isPermaLink="false">http://alexle.net/archives/149#comment-15904</guid>
		<description>Hi again!

finally I managed to get around this problem. It seems to be a mysql version bug that the ndbcluster didn't start properly. 
I downgraded to version 5.0.22 as advised at another page and this worked at once without any troubles!

Thanks for your assistance!

KR from Austria, Richard</description>
		<content:encoded><![CDATA[<p>Hi again!</p>
<p>finally I managed to get around this problem. It seems to be a mysql version bug that the ndbcluster didn&#8217;t start properly.<br />
I downgraded to version 5.0.22 as advised at another page and this worked at once without any troubles!</p>
<p>Thanks for your assistance!</p>
<p>KR from Austria, Richard</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.217 seconds -->

