<?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: Missing mysql.sock on Mac OS X</title>
	<atom:link href="http://www.botsko.net/blog/2009/03/16/missing-mysqlsock-on-mac-os-x/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.botsko.net/blog/2009/03/16/missing-mysqlsock-on-mac-os-x/</link>
	<description>continuing education</description>
	<lastBuildDate>Thu, 15 Dec 2011 20:08:02 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Michael Botsko</title>
		<link>http://www.botsko.net/blog/2009/03/16/missing-mysqlsock-on-mac-os-x/comment-page-1/#comment-2947</link>
		<dc:creator>Michael Botsko</dc:creator>
		<pubDate>Fri, 21 Oct 2011 15:20:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.botsko.net/blog/?p=282#comment-2947</guid>
		<description>I&#039;d appreciate if you can provide links to official documentation and solutions to the core issue then, and to support this.</description>
		<content:encoded><![CDATA[<p>I&#8217;d appreciate if you can provide links to official documentation and solutions to the core issue then, and to support this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Grigor Grigorov</title>
		<link>http://www.botsko.net/blog/2009/03/16/missing-mysqlsock-on-mac-os-x/comment-page-1/#comment-2946</link>
		<dc:creator>Grigor Grigorov</dc:creator>
		<pubDate>Fri, 21 Oct 2011 11:53:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.botsko.net/blog/?p=282#comment-2946</guid>
		<description>Guys - I think the missing mysql.sock file is a security measure. 

Try to shut down your server and see if it says something along the lines of: 
2011-10-21 14:37:10 - Stopping server...
2011-10-21 14:37:14 - Stop server: Warning: World-writable config file &#039;/usr/local/zend/mysql/data/my.cnf&#039; is ignored
Warning: World-writable config file &#039;/usr/local/zend/mysql/data/my.cnf&#039; is ignored

This means that the configuration file where you store your settings is being ignored -&gt; hence you cant expect to be making changes in that file and see those changes kick in once you start the server. So try this:
1. make changes to that file.
2. find it through finder and change back the permissions so that everyone can read but not write to it. 

... then some magic takes place and the mysql server says to itself -&gt; hmmm... that file is restricted - I can read it but I also know that only the administrator can write to it... which means its a good file for me to use when I set my settings using what&#039;s written in there. :)</description>
		<content:encoded><![CDATA[<p>Guys &#8211; I think the missing mysql.sock file is a security measure. </p>
<p>Try to shut down your server and see if it says something along the lines of:<br />
2011-10-21 14:37:10 &#8211; Stopping server&#8230;<br />
2011-10-21 14:37:14 &#8211; Stop server: Warning: World-writable config file &#8216;/usr/local/zend/mysql/data/my.cnf&#8217; is ignored<br />
Warning: World-writable config file &#8216;/usr/local/zend/mysql/data/my.cnf&#8217; is ignored</p>
<p>This means that the configuration file where you store your settings is being ignored -&gt; hence you cant expect to be making changes in that file and see those changes kick in once you start the server. So try this:<br />
1. make changes to that file.<br />
2. find it through finder and change back the permissions so that everyone can read but not write to it. </p>
<p>&#8230; then some magic takes place and the mysql server says to itself -&gt; hmmm&#8230; that file is restricted &#8211; I can read it but I also know that only the administrator can write to it&#8230; which means its a good file for me to use when I set my settings using what&#8217;s written in there. <img src='http://www.botsko.net/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vynsynt</title>
		<link>http://www.botsko.net/blog/2009/03/16/missing-mysqlsock-on-mac-os-x/comment-page-1/#comment-2903</link>
		<dc:creator>vynsynt</dc:creator>
		<pubDate>Mon, 01 Aug 2011 19:03:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.botsko.net/blog/?p=282#comment-2903</guid>
		<description>Ann from  July 31, 2010  totally solved my problem and I just wanted to publicly say thanks Ann!  I removed the my.cnf file, launched mysql, et voila! success!</description>
		<content:encoded><![CDATA[<p>Ann from  July 31, 2010  totally solved my problem and I just wanted to publicly say thanks Ann!  I removed the my.cnf file, launched mysql, et voila! success!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adam Fakes</title>
		<link>http://www.botsko.net/blog/2009/03/16/missing-mysqlsock-on-mac-os-x/comment-page-1/#comment-214</link>
		<dc:creator>Adam Fakes</dc:creator>
		<pubDate>Tue, 16 Nov 2010 12:21:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.botsko.net/blog/?p=282#comment-214</guid>
		<description>After following the clues here, I found mine in tmp so made symlink and away it went</description>
		<content:encoded><![CDATA[<p>After following the clues here, I found mine in tmp so made symlink and away it went</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter Weil</title>
		<link>http://www.botsko.net/blog/2009/03/16/missing-mysqlsock-on-mac-os-x/comment-page-1/#comment-139</link>
		<dc:creator>Peter Weil</dc:creator>
		<pubDate>Tue, 26 Oct 2010 13:33:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.botsko.net/blog/?p=282#comment-139</guid>
		<description>Same problem here. I had a custom my.cnf file in /etc, and apparently MySQL didn&#039;t like it (I&#039;m not sure why). Removing the my.cnf file resolved the issue. This is on a Mac Pro workstation I&#039;m using as a development machine -- it&#039;s not a server.</description>
		<content:encoded><![CDATA[<p>Same problem here. I had a custom my.cnf file in /etc, and apparently MySQL didn&#8217;t like it (I&#8217;m not sure why). Removing the my.cnf file resolved the issue. This is on a Mac Pro workstation I&#8217;m using as a development machine &#8212; it&#8217;s not a server.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rick</title>
		<link>http://www.botsko.net/blog/2009/03/16/missing-mysqlsock-on-mac-os-x/comment-page-1/#comment-137</link>
		<dc:creator>Rick</dc:creator>
		<pubDate>Fri, 15 Oct 2010 16:10:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.botsko.net/blog/?p=282#comment-137</guid>
		<description>ensure it is running mysqld first, otherwise you will get that error.</description>
		<content:encoded><![CDATA[<p>ensure it is running mysqld first, otherwise you will get that error.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Helena Åsgård</title>
		<link>http://www.botsko.net/blog/2009/03/16/missing-mysqlsock-on-mac-os-x/comment-page-1/#comment-136</link>
		<dc:creator>Helena Åsgård</dc:creator>
		<pubDate>Fri, 15 Oct 2010 12:43:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.botsko.net/blog/?p=282#comment-136</guid>
		<description>I have the same problem. The socket file is just gone! I cannot imagine what causes this to happen. Any ides?</description>
		<content:encoded><![CDATA[<p>I have the same problem. The socket file is just gone! I cannot imagine what causes this to happen. Any ides?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Trevor Smith</title>
		<link>http://www.botsko.net/blog/2009/03/16/missing-mysqlsock-on-mac-os-x/comment-page-1/#comment-135</link>
		<dc:creator>Trevor Smith</dc:creator>
		<pubDate>Sun, 03 Oct 2010 21:14:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.botsko.net/blog/?p=282#comment-135</guid>
		<description>In my case, the socket file should have been at /var/mysql/mysql.sock, as in the main post above, but the entire /var/mysql directory was missing. I had been using local PHP-based web forms to access mysql as recently as August 3, 2010, but probably hadn&#039;t used them since then (so about 2 months). At some point the directory and socket got deleted and I have absolutely no idea how.

I noticed that mysql ran fine from a command line and I could start and stop the server from the System Preferences panel so I knew the socket must be somewhere. After reading some random posts I noticed that some people&#039;s sockets were supposed to be /tmp and sure enough that&#039;s where mine was. I did a soft link as above (after creating the /var/mysql directory) and poof! everything works again.

Now I wonder what magic pixie caused my original link to disappear...</description>
		<content:encoded><![CDATA[<p>In my case, the socket file should have been at /var/mysql/mysql.sock, as in the main post above, but the entire /var/mysql directory was missing. I had been using local PHP-based web forms to access mysql as recently as August 3, 2010, but probably hadn&#8217;t used them since then (so about 2 months). At some point the directory and socket got deleted and I have absolutely no idea how.</p>
<p>I noticed that mysql ran fine from a command line and I could start and stop the server from the System Preferences panel so I knew the socket must be somewhere. After reading some random posts I noticed that some people&#8217;s sockets were supposed to be /tmp and sure enough that&#8217;s where mine was. I did a soft link as above (after creating the /var/mysql directory) and poof! everything works again.</p>
<p>Now I wonder what magic pixie caused my original link to disappear&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ann</title>
		<link>http://www.botsko.net/blog/2009/03/16/missing-mysqlsock-on-mac-os-x/comment-page-1/#comment-69</link>
		<dc:creator>Ann</dc:creator>
		<pubDate>Sat, 31 Jul 2010 08:18:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.botsko.net/blog/?p=282#comment-69</guid>
		<description>In my case, the missing socket was supposed to be under /tmp/mysql.sock and it was there and at some point disappeared and mysql was not functioning anymore. I had to re-install the mysql server several times on MAC OS X and in case you need to know how to remove previous MySQL, here is the link: http://steveno.wordpress.com/2009/03/26/uninstall-mysql-on-mac-os-x/

What I discovered was that I tried to configure my.conf to make mysql by default use utf8. I copied my-medium.cnf from support-files under /usr/local/mysql and placed it under /etc as /etc/my.cnf. Somehow on computer restart this configuration file was kicking in and /tmp/mysql.sock went missing!!!

As soon as I removed /etc/my.cnf I was able to launch newly installed mysql:

&gt; mysql -u mysql

And the mysql.sock file appeared in the right place: /tmp/mysql.sock

I spent HOURS to just figure out this thing!!! Only my MAC is not a server edition, that&#039;s why this is not working. In work we have a MAC server where we installed MySQL from binaries and I created /etc/my.cnf and that had no collision whatsoever. I believe that possibly one should install MySQL from binaries (not from .dmg image) and that would guarantee a socket and a configuration file co-existing together!</description>
		<content:encoded><![CDATA[<p>In my case, the missing socket was supposed to be under /tmp/mysql.sock and it was there and at some point disappeared and mysql was not functioning anymore. I had to re-install the mysql server several times on MAC OS X and in case you need to know how to remove previous MySQL, here is the link: <a href="http://steveno.wordpress.com/2009/03/26/uninstall-mysql-on-mac-os-x/" rel="nofollow">http://steveno.wordpress.com/2009/03/26/uninstall-mysql-on-mac-os-x/</a></p>
<p>What I discovered was that I tried to configure my.conf to make mysql by default use utf8. I copied my-medium.cnf from support-files under /usr/local/mysql and placed it under /etc as /etc/my.cnf. Somehow on computer restart this configuration file was kicking in and /tmp/mysql.sock went missing!!!</p>
<p>As soon as I removed /etc/my.cnf I was able to launch newly installed mysql:</p>
<p>&gt; mysql -u mysql</p>
<p>And the mysql.sock file appeared in the right place: /tmp/mysql.sock</p>
<p>I spent HOURS to just figure out this thing!!! Only my MAC is not a server edition, that&#8217;s why this is not working. In work we have a MAC server where we installed MySQL from binaries and I created /etc/my.cnf and that had no collision whatsoever. I believe that possibly one should install MySQL from binaries (not from .dmg image) and that would guarantee a socket and a configuration file co-existing together!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

