<?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: Installing MySQL on Mac OS X 10.5</title>
	<atom:link href="http://www.martinoflynn.com/blog/2008/08/13/installing-mysql-on-mac-os-x-105/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.martinoflynn.com/blog/2008/08/13/installing-mysql-on-mac-os-x-105/</link>
	<description>Do great work, enjoy the process</description>
	<lastBuildDate>Tue, 23 Feb 2010 13:01:52 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Babs</title>
		<link>http://www.martinoflynn.com/blog/2008/08/13/installing-mysql-on-mac-os-x-105/comment-page-1/#comment-1810</link>
		<dc:creator>Babs</dc:creator>
		<pubDate>Tue, 23 Feb 2010 13:01:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.martinoflynn.com/blog/?p=216#comment-1810</guid>
		<description>Thanks for this one, it seemed to be the missing link after I had updated my ports (MySQL no longer autolaunched).

I&#039;ve repeated all the steps here, but after every restart I have to reconnect the socket:
sudo ln -s /opt/local/var/run/mysql5/mysqld.sock /tmp/mysql.sock

Why is that? Can you give me a hint how to fix this?

Thanks, Babs</description>
		<content:encoded><![CDATA[<p>Thanks for this one, it seemed to be the missing link after I had updated my ports (MySQL no longer autolaunched).</p>
<p>I&#8217;ve repeated all the steps here, but after every restart I have to reconnect the socket:<br />
sudo ln -s /opt/local/var/run/mysql5/mysqld.sock /tmp/mysql.sock</p>
<p>Why is that? Can you give me a hint how to fix this?</p>
<p>Thanks, Babs</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike Ruschak</title>
		<link>http://www.martinoflynn.com/blog/2008/08/13/installing-mysql-on-mac-os-x-105/comment-page-1/#comment-1798</link>
		<dc:creator>Mike Ruschak</dc:creator>
		<pubDate>Thu, 11 Feb 2010 21:38:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.martinoflynn.com/blog/?p=216#comment-1798</guid>
		<description>Lee,

I would actually not recommend the PHP (MacPorts) package.  Never had good luck with it myself.  I would suggest you use the PHP package from Entropy.ch and remove the MacPorts version.  Will save you a lot of headaches and the Entropy package is pretty complete.

http://www.entropy.ch/software/macosx/php/</description>
		<content:encoded><![CDATA[<p>Lee,</p>
<p>I would actually not recommend the PHP (MacPorts) package.  Never had good luck with it myself.  I would suggest you use the PHP package from Entropy.ch and remove the MacPorts version.  Will save you a lot of headaches and the Entropy package is pretty complete.</p>
<p><a href="http://www.entropy.ch/software/macosx/php/" rel="nofollow">http://www.entropy.ch/software/macosx/php/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lee</title>
		<link>http://www.martinoflynn.com/blog/2008/08/13/installing-mysql-on-mac-os-x-105/comment-page-1/#comment-1788</link>
		<dc:creator>Lee</dc:creator>
		<pubDate>Sat, 06 Feb 2010 18:06:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.martinoflynn.com/blog/?p=216#comment-1788</guid>
		<description>Any idea why PHP5 (also macports) doesn&#039;t connect to MySQL5 via socket connection only via TCP/IP? I&#039;ve been trying for hours to find a fix and no solution.</description>
		<content:encoded><![CDATA[<p>Any idea why PHP5 (also macports) doesn&#8217;t connect to MySQL5 via socket connection only via TCP/IP? I&#8217;ve been trying for hours to find a fix and no solution.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hcabbos</title>
		<link>http://www.martinoflynn.com/blog/2008/08/13/installing-mysql-on-mac-os-x-105/comment-page-1/#comment-1703</link>
		<dc:creator>hcabbos</dc:creator>
		<pubDate>Thu, 31 Dec 2009 17:53:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.martinoflynn.com/blog/?p=216#comment-1703</guid>
		<description>Mike, can&#039;t thank you enough for this article. It absolutely nailed my problems. I&#039;m just starting Rails development and was attempting to set up my Rails environment. The MySQL frustration had me at wits end. I did a fresh search on Google today and found this article. Awesome! The perfect way to end the year and start a new one. Thanks again!</description>
		<content:encoded><![CDATA[<p>Mike, can&#8217;t thank you enough for this article. It absolutely nailed my problems. I&#8217;m just starting Rails development and was attempting to set up my Rails environment. The MySQL frustration had me at wits end. I did a fresh search on Google today and found this article. Awesome! The perfect way to end the year and start a new one. Thanks again!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Installing Ruby on Rails + MySQL + Imagemagick + Nginx + Passenger With Macports OSX &#8226; Jotlab</title>
		<link>http://www.martinoflynn.com/blog/2008/08/13/installing-mysql-on-mac-os-x-105/comment-page-1/#comment-1638</link>
		<dc:creator>Installing Ruby on Rails + MySQL + Imagemagick + Nginx + Passenger With Macports OSX &#8226; Jotlab</dc:creator>
		<pubDate>Fri, 11 Dec 2009 23:15:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.martinoflynn.com/blog/?p=216#comment-1638</guid>
		<description>[...] install it. Some people have permission issues with sockets here, if you are one of them check out this page. Once that is done run: sudo port install [...]</description>
		<content:encoded><![CDATA[<p>[...] install it. Some people have permission issues with sockets here, if you are one of them check out this page. Once that is done run: sudo port install [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike Ruschak</title>
		<link>http://www.martinoflynn.com/blog/2008/08/13/installing-mysql-on-mac-os-x-105/comment-page-1/#comment-1574</link>
		<dc:creator>Mike Ruschak</dc:creator>
		<pubDate>Thu, 19 Nov 2009 16:30:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.martinoflynn.com/blog/?p=216#comment-1574</guid>
		<description>I would suggest you check out the articles on Snow Leopard.  Dan has a great article on compiling MySQL for Snow Leopard.  Compiling your own allows for more control.  I recommend this route.  Its also a good opportunity to learn how the underpinnings of UNIX work.

http://hivelogic.com/articles/compiling-mysql-on-snow-leopard/

I have been pretty busy as of late and haven&#039;t had time to update this post.  Rest assured I will update this post as soon as possible.  This way everyone will have instructions for the MacPorts solution as well.  The benefit of Mac Ports is obviously that it will keep the MySQL software up to date for you.  Stay tuned I hope to have this article updated, or a follow up article posted the week of December 7th.  At the very least I will follow up with a comment on this post regarding my progress.  Thanks all for the comments as they will help me update this post.

</description>
		<content:encoded><![CDATA[<p>I would suggest you check out the articles on Snow Leopard.  Dan has a great article on compiling MySQL for Snow Leopard.  Compiling your own allows for more control.  I recommend this route.  Its also a good opportunity to learn how the underpinnings of UNIX work.</p>
<p><a href="http://hivelogic.com/articles/compiling-mysql-on-snow-leopard/" rel="nofollow">http://hivelogic.com/articles/compiling-mysql-on-snow-leopard/</a></p>
<p>I have been pretty busy as of late and haven&#8217;t had time to update this post.  Rest assured I will update this post as soon as possible.  This way everyone will have instructions for the MacPorts solution as well.  The benefit of Mac Ports is obviously that it will keep the MySQL software up to date for you.  Stay tuned I hope to have this article updated, or a follow up article posted the week of December 7th.  At the very least I will follow up with a comment on this post regarding my progress.  Thanks all for the comments as they will help me update this post.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave All</title>
		<link>http://www.martinoflynn.com/blog/2008/08/13/installing-mysql-on-mac-os-x-105/comment-page-1/#comment-1573</link>
		<dc:creator>Dave All</dc:creator>
		<pubDate>Thu, 19 Nov 2009 15:31:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.martinoflynn.com/blog/?p=216#comment-1573</guid>
		<description>Simple&amp;Best :)
Use pkg mac installer from here:
&lt;a href=&quot;http://dev.mysql.com/downloads/mysql/5.1.html#macosx-dmg&quot; title=&quot;MySql OSX 5.1.41&quot; rel=&quot;nofollow&quot;&gt;Pick Installer&lt;/a&gt;
and after Installation follow instructions contained in Readme...

If you have to reinstall MySql... before remove old install
following:
&lt;a href=&quot;http://tomkeur.net/39/how-to-remove-mysql-completely-mac-os-x-leopard.html&quot; title=&quot;MySql OSX 5.1.41&quot; rel=&quot;nofollow&quot;&gt;Remove old&lt;/a&gt;
Best Wishes from Dave ;)</description>
		<content:encoded><![CDATA[<p>Simple&amp;Best <img src='http://www.martinoflynn.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
Use pkg mac installer from here:<br />
<a href="http://dev.mysql.com/downloads/mysql/5.1.html#macosx-dmg" title="MySql OSX 5.1.41" rel="nofollow">Pick Installer</a><br />
and after Installation follow instructions contained in Readme&#8230;</p>
<p>If you have to reinstall MySql&#8230; before remove old install<br />
following:<br />
<a href="http://tomkeur.net/39/how-to-remove-mysql-completely-mac-os-x-leopard.html" title="MySql OSX 5.1.41" rel="nofollow">Remove old</a><br />
Best Wishes from Dave <img src='http://www.martinoflynn.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Laurent</title>
		<link>http://www.martinoflynn.com/blog/2008/08/13/installing-mysql-on-mac-os-x-105/comment-page-1/#comment-1556</link>
		<dc:creator>Laurent</dc:creator>
		<pubDate>Tue, 10 Nov 2009 04:51:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.martinoflynn.com/blog/?p=216#comment-1556</guid>
		<description>Hi,

I have the same problem than Bess :

$ mysql5 -u root
ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/opt/local/var/run/mysql5/mysqld.sock’ (2)

Does anybody else have an idea to fix this problem? I tried for hours and it drives me crazy now. Thanks a lot in advance I appreciate.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I have the same problem than Bess :</p>
<p>$ mysql5 -u root<br />
ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/opt/local/var/run/mysql5/mysqld.sock’ (2)</p>
<p>Does anybody else have an idea to fix this problem? I tried for hours and it drives me crazy now. Thanks a lot in advance I appreciate.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bess</title>
		<link>http://www.martinoflynn.com/blog/2008/08/13/installing-mysql-on-mac-os-x-105/comment-page-1/#comment-1553</link>
		<dc:creator>Bess</dc:creator>
		<pubDate>Sat, 07 Nov 2009 20:57:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.martinoflynn.com/blog/?p=216#comment-1553</guid>
		<description>I find this is very useful. 
http://obscuredclarity.blogspot.com/2009/08/install-mysql-on-mac-os-x.html

After I follow your instruction until the last step, I use the Step 4: Verify Install. Fire up the Terminal and type in: cd /usr/local , hit enter, type in: ls , and verify that there are two items. The Mac OS X .pkg of MySQL installs itself into /usr/local/mysql-VERSION and /usr/local/mysql.

Step 5: Restart your computer. When the computer reboots, it will startup the database server allowing you to connect to it.

Step 6: Start MySQL. Type in: /usr/local/mysql/bin/mysql -u root -p . The last part of the command tells it you want to start it up as the root user and that you&#039;d like to be prompted for a password. By default the root&#039;s password is blank, so when you are prompted for it, just hit enter. You are now running MySQL, and you can tell it what to do at the MySQL command prompt: mysql&gt;.

It seems like the miracle step is to restart the computer. After starting up the computer and open up a new terminal, I am able to start mysql using user root without password.

/usr/local/mysql/bin/mysql -u root -p

mysql5 -u root won&#039;t work at all. It gives me the same ERROR 2002 (HY000) even after I restart computer or restart the terminal.

$ mysql5 -u root
ERROR 2002 (HY000): Can&#039;t connect to local MySQL server through socket &#039;/opt/local/var/run/mysql5/mysqld.sock&#039; (2)</description>
		<content:encoded><![CDATA[<p>I find this is very useful.<br />
<a href="http://obscuredclarity.blogspot.com/2009/08/install-mysql-on-mac-os-x.html" rel="nofollow">http://obscuredclarity.blogspot.com/2009/08/install-mysql-on-mac-os-x.html</a></p>
<p>After I follow your instruction until the last step, I use the Step 4: Verify Install. Fire up the Terminal and type in: cd /usr/local , hit enter, type in: ls , and verify that there are two items. The Mac OS X .pkg of MySQL installs itself into /usr/local/mysql-VERSION and /usr/local/mysql.</p>
<p>Step 5: Restart your computer. When the computer reboots, it will startup the database server allowing you to connect to it.</p>
<p>Step 6: Start MySQL. Type in: /usr/local/mysql/bin/mysql -u root -p . The last part of the command tells it you want to start it up as the root user and that you&#8217;d like to be prompted for a password. By default the root&#8217;s password is blank, so when you are prompted for it, just hit enter. You are now running MySQL, and you can tell it what to do at the MySQL command prompt: mysql&gt;.</p>
<p>It seems like the miracle step is to restart the computer. After starting up the computer and open up a new terminal, I am able to start mysql using user root without password.</p>
<p>/usr/local/mysql/bin/mysql -u root -p</p>
<p>mysql5 -u root won&#8217;t work at all. It gives me the same ERROR 2002 (HY000) even after I restart computer or restart the terminal.</p>
<p>$ mysql5 -u root<br />
ERROR 2002 (HY000): Can&#8217;t connect to local MySQL server through socket &#8216;/opt/local/var/run/mysql5/mysqld.sock&#8217; (2)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bess</title>
		<link>http://www.martinoflynn.com/blog/2008/08/13/installing-mysql-on-mac-os-x-105/comment-page-1/#comment-1552</link>
		<dc:creator>Bess</dc:creator>
		<pubDate>Sat, 07 Nov 2009 20:33:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.martinoflynn.com/blog/?p=216#comment-1552</guid>
		<description>macports changed the packages.
sudo port install mysql5 +server is now obsolete.

$ sudo port install mysql5 mysql5-server

If you run port installed you will see version of mysql5 &amp; mysql5-server installed
$ port installed
mysql5 @5.1.40_0 (active)
mysql5-server @5.1.40_0 (active)

I was able to follow all the steps until the last step where you setup mysql5 password for user root. I can&#039;t connect to local MySQL. 

$ sudo launchctl load -w /Library/LaunchDaemons/org.macports.mysql5.plist
$ mysql5 -u root
Enter password: 
ERROR 2002 (HY000): Can&#039;t connect to local MySQL server through socket &#039;/opt/local/var/run/mysql5/mysqld.sock&#039; (62)

I check many times that I have the symbolic links on both path /var/mysql &amp; /opt/local/var/run/mysql5

$ ls /var/mysql
mysql.sock
$ ls /opt/local/var/run/mysql5
mysqld.sock

Since macport update their package many tutorial blogs have been outdated. I have spend 3 days going into circles. Your blog post is the most updated and accurate even more complete than official mysql.com.

Would you please give me more insight on how to resolve the last part? I have been spending few days just to install the mysql on local machine</description>
		<content:encoded><![CDATA[<p>macports changed the packages.<br />
sudo port install mysql5 +server is now obsolete.</p>
<p>$ sudo port install mysql5 mysql5-server</p>
<p>If you run port installed you will see version of mysql5 &amp; mysql5-server installed<br />
$ port installed<br />
mysql5 @5.1.40_0 (active)<br />
mysql5-server @5.1.40_0 (active)</p>
<p>I was able to follow all the steps until the last step where you setup mysql5 password for user root. I can&#8217;t connect to local MySQL. </p>
<p>$ sudo launchctl load -w /Library/LaunchDaemons/org.macports.mysql5.plist<br />
$ mysql5 -u root<br />
Enter password:<br />
ERROR 2002 (HY000): Can&#8217;t connect to local MySQL server through socket &#8216;/opt/local/var/run/mysql5/mysqld.sock&#8217; (62)</p>
<p>I check many times that I have the symbolic links on both path /var/mysql &amp; /opt/local/var/run/mysql5</p>
<p>$ ls /var/mysql<br />
mysql.sock<br />
$ ls /opt/local/var/run/mysql5<br />
mysqld.sock</p>
<p>Since macport update their package many tutorial blogs have been outdated. I have spend 3 days going into circles. Your blog post is the most updated and accurate even more complete than official mysql.com.</p>
<p>Would you please give me more insight on how to resolve the last part? I have been spending few days just to install the mysql on local machine</p>
]]></content:encoded>
	</item>
</channel>
</rss>
