<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Solve: Can&#8217;t connect to local MySQL server through socket /tmp/mysql.sock</title>
	<atom:link href="http://www.tech-recipes.com/rx/762/solve-cant-connect-to-local-mysql-server-through-socket-tmpmysqlsock/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tech-recipes.com/rx/762/solve-cant-connect-to-local-mysql-server-through-socket-tmpmysqlsock/</link>
	<description>Computer and technology tutorials and guides</description>
	<lastBuildDate>Sun, 22 Nov 2009 03:12:08 -0800</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: MarcoGlz</title>
		<link>http://www.tech-recipes.com/rx/762/solve-cant-connect-to-local-mysql-server-through-socket-tmpmysqlsock/comment-page-1/#comment-15697</link>
		<dc:creator>MarcoGlz</dc:creator>
		<pubDate>Sat, 17 Oct 2009 14:55:28 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-15697</guid>
		<description>Wouldn&#039;t the link be removed at server reboot and the problem appear again??&lt;br&gt;&lt;br&gt;I had the same problem but it is because my.cnf was not in the default locations&lt;br&gt;&lt;br&gt;CLIENT:&lt;br&gt;Default options are read from the following files in the given order:&lt;br&gt;/etc/my.cnf ~/.my.cnf /usr/local/mysql/etc/my.cnf&lt;br&gt;&lt;br&gt;So even when I added the [client] section I got the same error, so I did a link&lt;br&gt;&lt;br&gt;#ln -s /my/cnf/file_location/my.cnf /etc/my.cnf&lt;br&gt;&lt;br&gt;And it worked great.</description>
		<content:encoded><![CDATA[<p>Wouldn&#39;t the link be removed at server reboot and the problem appear again??</p>
<p>I had the same problem but it is because my.cnf was not in the default locations</p>
<p>CLIENT:<br />Default options are read from the following files in the given order:<br />/etc/my.cnf ~/.my.cnf /usr/local/mysql/etc/my.cnf</p>
<p>So even when I added the [client] section I got the same error, so I did a link</p>
<p>#ln -s /my/cnf/file_location/my.cnf /etc/my.cnf</p>
<p>And it worked great.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: NikoJr</title>
		<link>http://www.tech-recipes.com/rx/762/solve-cant-connect-to-local-mysql-server-through-socket-tmpmysqlsock/comment-page-1/#comment-15222</link>
		<dc:creator>NikoJr</dc:creator>
		<pubDate>Thu, 24 Sep 2009 22:22:01 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-15222</guid>
		<description>Man u have saved my life hehehe... very useful. &lt;br&gt;&lt;br&gt;Thanku very much</description>
		<content:encoded><![CDATA[<p>Man u have saved my life hehehe&#8230; very useful. </p>
<p>Thanku very much</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JEME</title>
		<link>http://www.tech-recipes.com/rx/762/solve-cant-connect-to-local-mysql-server-through-socket-tmpmysqlsock/comment-page-1/#comment-13024</link>
		<dc:creator>JEME</dc:creator>
		<pubDate>Tue, 30 Jun 2009 12:25:56 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-13024</guid>
		<description>Good day  qmchenry, &lt;br&gt;&lt;br&gt;I try with de line:&lt;br&gt;mysql --socket=/var/lib/mysql/mysql.sock ...&lt;br&gt;&lt;br&gt;but now the terminal list this error:&lt;br&gt;&lt;br&gt;ERROR 1045 (28000): Access denied for user &#039;root&#039;@&#039;localhost&#039; (using password: YES)&lt;br&gt;&lt;br&gt;&lt;br&gt;would you can help me</description>
		<content:encoded><![CDATA[<p>Good day  qmchenry, </p>
<p>I try with de line:<br />mysql &#8211;socket=/var/lib/mysql/mysql.sock &#8230;</p>
<p>but now the terminal list this error:</p>
<p>ERROR 1045 (28000): Access denied for user &#39;root&#39;@&#39;localhost&#39; (using password: YES)</p>
<p>would you can help me</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steven Sheffey</title>
		<link>http://www.tech-recipes.com/rx/762/solve-cant-connect-to-local-mysql-server-through-socket-tmpmysqlsock/comment-page-1/#comment-13007</link>
		<dc:creator>Steven Sheffey</dc:creator>
		<pubDate>Mon, 29 Jun 2009 22:37:04 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-13007</guid>
		<description>Hi guys, I to have this problem and I&#039;m new to mySQL and PHP. Where are you guys locating all these directories such as: /var/lib/mysql or /usr/local/mysql/data ?</description>
		<content:encoded><![CDATA[<p>Hi guys, I to have this problem and I&#39;m new to mySQL and PHP. Where are you guys locating all these directories such as: /var/lib/mysql or /usr/local/mysql/data ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: wassma</title>
		<link>http://www.tech-recipes.com/rx/762/solve-cant-connect-to-local-mysql-server-through-socket-tmpmysqlsock/comment-page-1/#comment-12563</link>
		<dc:creator>wassma</dc:creator>
		<pubDate>Tue, 16 Jun 2009 16:33:13 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-12563</guid>
		<description>we had the same problem; and we resolve it by adding a simple link from mysql to mysql.sock with the command &quot;ln -s&quot;&lt;br&gt;I think there is another solution; create the repertories(mysql and mysql.sock)&lt;br&gt;sometimes we haven&#039;t mysql, we have mysqld .&lt;br&gt;and we must restart mysql at the end.</description>
		<content:encoded><![CDATA[<p>we had the same problem; and we resolve it by adding a simple link from mysql to mysql.sock with the command &#8220;ln -s&#8221;<br />I think there is another solution; create the repertories(mysql and mysql.sock)<br />sometimes we haven&#39;t mysql, we have mysqld .<br />and we must restart mysql at the end.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Amit</title>
		<link>http://www.tech-recipes.com/rx/762/solve-cant-connect-to-local-mysql-server-through-socket-tmpmysqlsock/comment-page-1/#comment-12391</link>
		<dc:creator>Amit</dc:creator>
		<pubDate>Thu, 11 Jun 2009 18:03:11 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-12391</guid>
		<description>Hi&lt;br&gt;Just wanted to share this.&lt;br&gt;I also faced the same problem after a fresh installation of mysql on Solaris.&lt;br&gt;I tried to follow above step, but did not work,&lt;br&gt;Then it came to my notice that Mysql service was offline.&lt;br&gt;Thanks &lt;br&gt;Amit</description>
		<content:encoded><![CDATA[<p>Hi<br />Just wanted to share this.<br />I also faced the same problem after a fresh installation of mysql on Solaris.<br />I tried to follow above step, but did not work,<br />Then it came to my notice that Mysql service was offline.<br />Thanks <br />Amit</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David C. Rankin, J.D.,P.E.</title>
		<link>http://www.tech-recipes.com/rx/762/solve-cant-connect-to-local-mysql-server-through-socket-tmpmysqlsock/comment-page-1/#comment-11354</link>
		<dc:creator>David C. Rankin, J.D.,P.E.</dc:creator>
		<pubDate>Wed, 13 May 2009 13:25:37 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-11354</guid>
		<description>Excellent nugget of information:&lt;br&gt;&lt;br&gt;    It came in real handy when the geniouses at opensuse broke an update of mysql to mysql-5.1.34-29.1 by putting the mysql.sock and mysqld.pid in /var/run/mysql instead of /var/lib/mysql as normal. Great quick fix was found here. In addition to /etc/my.cnf, the init script at /usr/sbin/rcmysql needed to be fixed as well.&lt;br&gt;&lt;br&gt;    Thanks</description>
		<content:encoded><![CDATA[<p>Excellent nugget of information:</p>
<p>    It came in real handy when the geniouses at opensuse broke an update of mysql to mysql-5.1.34-29.1 by putting the mysql.sock and mysqld.pid in /var/run/mysql instead of /var/lib/mysql as normal. Great quick fix was found here. In addition to /etc/my.cnf, the init script at /usr/sbin/rcmysql needed to be fixed as well.</p>
<p>    Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: GN</title>
		<link>http://www.tech-recipes.com/rx/762/solve-cant-connect-to-local-mysql-server-through-socket-tmpmysqlsock/comment-page-1/#comment-10302</link>
		<dc:creator>GN</dc:creator>
		<pubDate>Mon, 13 Apr 2009 09:00:38 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-10302</guid>
		<description>instead of doing all the above stuff, just create a link in your tmp directory or directory in which the mysql error message is pointing to &lt;br&gt;&lt;br&gt;eg.&lt;br&gt;&gt;cd /tmp&lt;br&gt;&gt;ln -sf /var/lib/mysql/mysql.sock mysql.sock&lt;br&gt;&lt;br&gt;HTH</description>
		<content:encoded><![CDATA[<p>instead of doing all the above stuff, just create a link in your tmp directory or directory in which the mysql error message is pointing to </p>
<p>eg.<br />&gt;cd /tmp<br />&gt;ln -sf /var/lib/mysql/mysql.sock mysql.sock</p>
<p>HTH</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dellsh</title>
		<link>http://www.tech-recipes.com/rx/762/solve-cant-connect-to-local-mysql-server-through-socket-tmpmysqlsock/comment-page-1/#comment-9850</link>
		<dc:creator>dellsh</dc:creator>
		<pubDate>Sat, 28 Mar 2009 21:32:29 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-9850</guid>
		<description>when is list both of this file &lt;br&gt;/tmp/mysql.sock&lt;br&gt;/var/lib/mysql/mysql.sock&lt;br&gt;i didn&#039;t find both of them &lt;br&gt;&lt;br&gt;create any of this file and leave it empty</description>
		<content:encoded><![CDATA[<p>when is list both of this file <br />/tmp/mysql.sock<br />/var/lib/mysql/mysql.sock<br />i didn&#39;t find both of them </p>
<p>create any of this file and leave it empty</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ezlinuxadmin</title>
		<link>http://www.tech-recipes.com/rx/762/solve-cant-connect-to-local-mysql-server-through-socket-tmpmysqlsock/comment-page-1/#comment-9580</link>
		<dc:creator>ezlinuxadmin</dc:creator>
		<pubDate>Wed, 18 Mar 2009 17:40:40 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-9580</guid>
		<description>I have had more issues with this socket error, and it seems different every time. I have removed the base directory path, rebooting the server, both have worked before but now this time nothing works. Blah! But thanks for the tips. I going to upgrade to mysql 5 then downgrade again to 4. Hopefully this will do it.</description>
		<content:encoded><![CDATA[<p>I have had more issues with this socket error, and it seems different every time. I have removed the base directory path, rebooting the server, both have worked before but now this time nothing works. Blah! But thanks for the tips. I going to upgrade to mysql 5 then downgrade again to 4. Hopefully this will do it.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
