<?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>Fri, 10 Feb 2012 12:22:53 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: susu</title>
		<link>http://www.tech-recipes.com/rx/762/solve-cant-connect-to-local-mysql-server-through-socket-tmpmysqlsock/comment-page-1/#comment-52984</link>
		<dc:creator>susu</dc:creator>
		<pubDate>Mon, 02 Jan 2012 18:57:54 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-52984</guid>
		<description>fantastic illustration ,, but i couldn&#039;t change the &#039;my.cnf&#039; cz it&#039;s read only.. how can i change it&#039;s permission???
thx alot ;D</description>
		<content:encoded><![CDATA[<p>fantastic illustration ,, but i couldn&#8217;t change the &#8216;my.cnf&#8217; cz it&#8217;s read only.. how can i change it&#8217;s permission???<br />
thx alot ;D</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Roy M J</title>
		<link>http://www.tech-recipes.com/rx/762/solve-cant-connect-to-local-mysql-server-through-socket-tmpmysqlsock/comment-page-1/#comment-52263</link>
		<dc:creator>Roy M J</dc:creator>
		<pubDate>Fri, 02 Dec 2011 13:55:56 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-52263</guid>
		<description>Hi i am having the same error, How should my connnection code look like? Currently its 

mysql_connect(&quot;localhost:/tmp/mysql5.sock&quot;,&quot;dbo377327247&quot;,&quot;password&quot;);
But the error says

 Can&#039;t connect to local MySQL server through socket &#039;/tmp/mysql5.sock&#039; (2) 

How should i link the socket to this code?

Thanks</description>
		<content:encoded><![CDATA[<p>Hi i am having the same error, How should my connnection code look like? Currently its </p>
<p>mysql_connect(&#8220;localhost:/tmp/mysql5.sock&#8221;,&#8221;dbo377327247&#8243;,&#8221;password&#8221;);<br />
But the error says</p>
<p> Can&#8217;t connect to local MySQL server through socket &#8216;/tmp/mysql5.sock&#8217; (2) </p>
<p>How should i link the socket to this code?</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rana</title>
		<link>http://www.tech-recipes.com/rx/762/solve-cant-connect-to-local-mysql-server-through-socket-tmpmysqlsock/comment-page-1/#comment-49868</link>
		<dc:creator>rana</dc:creator>
		<pubDate>Sat, 24 Sep 2011 09:53:39 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-49868</guid>
		<description>When I upload my php and MySQL website of web hosting sites then i am getting this message. 

Warning: mysql_pconnect() [function.mysql-pconnect]: Can&#039;t connect to local MySQL server through socket &#039;/var/run/mysqld/mysqld.sock&#039; (2) in /srv/disk2/833826/www/mycprogamsolution.co.cc/Connections/check_mag.php on line 9

Fatal error: Can&#039;t connect to local MySQL server through socket &#039;/var/run/mysqld/mysqld.sock&#039; (2) in /srv/disk2/833826/www/mycprogamsolution.co.cc/Connections/check_mag.php on line 9

what should i do?</description>
		<content:encoded><![CDATA[<p>When I upload my php and MySQL website of web hosting sites then i am getting this message. </p>
<p>Warning: mysql_pconnect() [function.mysql-pconnect]: Can&#8217;t connect to local MySQL server through socket &#8216;/var/run/mysqld/mysqld.sock&#8217; (2) in /srv/disk2/833826/www/mycprogamsolution.co.cc/Connections/check_mag.php on line 9</p>
<p>Fatal error: Can&#8217;t connect to local MySQL server through socket &#8216;/var/run/mysqld/mysqld.sock&#8217; (2) in /srv/disk2/833826/www/mycprogamsolution.co.cc/Connections/check_mag.php on line 9</p>
<p>what should i do?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chandan Singh Pachwal</title>
		<link>http://www.tech-recipes.com/rx/762/solve-cant-connect-to-local-mysql-server-through-socket-tmpmysqlsock/comment-page-1/#comment-33775</link>
		<dc:creator>Chandan Singh Pachwal</dc:creator>
		<pubDate>Mon, 25 Jul 2011 15:12:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-33775</guid>
		<description>try runing it as
/data/(folder in which mysql is installed)/mysql/bin/mysql</description>
		<content:encoded><![CDATA[<p>try runing it as<br />
/data/(folder in which mysql is installed)/mysql/bin/mysql</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chandan Singh Pachwal</title>
		<link>http://www.tech-recipes.com/rx/762/solve-cant-connect-to-local-mysql-server-through-socket-tmpmysqlsock/comment-page-1/#comment-33776</link>
		<dc:creator>Chandan Singh Pachwal</dc:creator>
		<pubDate>Mon, 25 Jul 2011 15:12:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-33776</guid>
		<description>try runing it as
/data/(folder in which mysql is installed)/mysql/bin/mysql</description>
		<content:encoded><![CDATA[<p>try runing it as<br />
/data/(folder in which mysql is installed)/mysql/bin/mysql</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gopinathkarangula</title>
		<link>http://www.tech-recipes.com/rx/762/solve-cant-connect-to-local-mysql-server-through-socket-tmpmysqlsock/comment-page-1/#comment-24465</link>
		<dc:creator>Gopinathkarangula</dc:creator>
		<pubDate>Mon, 06 Jun 2011 10:54:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-24465</guid>
		<description>Hi to all for me this problem occurred twice, so i just thought and understood the problem, when ever you are changing some config file related to mysql, better stop the service, edit you config, and start the service, then mysqld problem you will never face..</description>
		<content:encoded><![CDATA[<p>Hi to all for me this problem occurred twice, so i just thought and understood the problem, when ever you are changing some config file related to mysql, better stop the service, edit you config, and start the service, then mysqld problem you will never face..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: computerically inclined?</title>
		<link>http://www.tech-recipes.com/rx/762/solve-cant-connect-to-local-mysql-server-through-socket-tmpmysqlsock/comment-page-1/#comment-47043</link>
		<dc:creator>computerically inclined?</dc:creator>
		<pubDate>Thu, 10 Mar 2011 19:11:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-47043</guid>
		<description>Calm down, maybe you are on the wrong message board. This is a technical message board. Sounds like you are looking for the Fisher Price Computer Users Group.</description>
		<content:encoded><![CDATA[<p>Calm down, maybe you are on the wrong message board. This is a technical message board. Sounds like you are looking for the Fisher Price Computer Users Group.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yahya Nikandish</title>
		<link>http://www.tech-recipes.com/rx/762/solve-cant-connect-to-local-mysql-server-through-socket-tmpmysqlsock/comment-page-1/#comment-46447</link>
		<dc:creator>Yahya Nikandish</dc:creator>
		<pubDate>Wed, 16 Feb 2011 17:52:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-46447</guid>
		<description>yahya.nikandish@yahoo.com</description>
		<content:encoded><![CDATA[<p><a href="mailto:yahya.nikandish@yahoo.com">yahya.nikandish@yahoo.com</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonym</title>
		<link>http://www.tech-recipes.com/rx/762/solve-cant-connect-to-local-mysql-server-through-socket-tmpmysqlsock/comment-page-1/#comment-44959</link>
		<dc:creator>Anonym</dc:creator>
		<pubDate>Tue, 21 Dec 2010 23:22:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-44959</guid>
		<description>BTW also this occurs when your site under ddos attack.
In this situation mysqld will load high cpu usage too.</description>
		<content:encoded><![CDATA[<p>BTW also this occurs when your site under ddos attack.<br />
In this situation mysqld will load high cpu usage too.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: CJ</title>
		<link>http://www.tech-recipes.com/rx/762/solve-cant-connect-to-local-mysql-server-through-socket-tmpmysqlsock/comment-page-1/#comment-44843</link>
		<dc:creator>CJ</dc:creator>
		<pubDate>Fri, 17 Dec 2010 11:51:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-44843</guid>
		<description>Hello. I&#039;m a real newbie to all this so would be grateful for answers in words of one syllable and sorry if this is obvious to everyone else, but most comments are going over my head. I think if I can get past this bit, then I should be OK to do everything I want to do, I&#039;m just stuck here, trying to get a connection.

I&#039;m getting the &#039;Can&#039;t connect to local MySQL server through socket &#039;/var/lib/mysql/mysql.sock&#039; (2)&#039; error message.  

I&#039;ve set up my first MySQL database and its hosted on a remote web server so I don&#039;t have access to config files.  I&#039;m on the client side, trying to connect so I can create some dynamic pages for my website.  

My web hosting company are being less than helpful in helping me to sort this out. What sort of questions should I be asking them and then if they say I&#039;m using the wrong socket, what php script would I need to specify (I would need it in full)?  

Sorry, this must be really basic stuff for everyone else but it&#039;s causing me a lot of grief and if I can just get through this I can actually do some work....

Thanks in advance for any suggestions.

CJ

</description>
		<content:encoded><![CDATA[<p>Hello. I&#8217;m a real newbie to all this so would be grateful for answers in words of one syllable and sorry if this is obvious to everyone else, but most comments are going over my head. I think if I can get past this bit, then I should be OK to do everything I want to do, I&#8217;m just stuck here, trying to get a connection.</p>
<p>I&#8217;m getting the &#8216;Can&#8217;t connect to local MySQL server through socket &#8216;/var/lib/mysql/mysql.sock&#8217; (2)&#8217; error message.  </p>
<p>I&#8217;ve set up my first MySQL database and its hosted on a remote web server so I don&#8217;t have access to config files.  I&#8217;m on the client side, trying to connect so I can create some dynamic pages for my website.  </p>
<p>My web hosting company are being less than helpful in helping me to sort this out. What sort of questions should I be asking them and then if they say I&#8217;m using the wrong socket, what php script would I need to specify (I would need it in full)?  </p>
<p>Sorry, this must be really basic stuff for everyone else but it&#8217;s causing me a lot of grief and if I can just get through this I can actually do some work&#8230;.</p>
<p>Thanks in advance for any suggestions.</p>
<p>CJ</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached (User agent is rejected)
Database Caching 6/17 queries in 0.833 seconds using memcached
Object Caching 417/426 objects using memcached

Served from: www.tech-recipes.com @ 2012-02-10 09:42:51 -->
