Did location of mysql.sock change in mysql5.0.37?

Ryan Schmidt ryandesign at macports.org
Thu May 3 00:47:00 PDT 2007


On May 2, 2007, at 10:53, Bakki Kudva wrote:

> My rails app is complaining that it can't find mysql.sock in /tmp
> after upgrading. Before the defaults just worked. Now it appears that
> it is in /opt/local/var/run/mysql5 - so I either have to set it in
> my.cnf or change my rails configuration.

The MacPorts MySQL socket has never been in /tmp, to the best of my  
knowledge. The official binary distribution of MySQL from http:// 
dev.mysql.com does use that location, however.

When using the MacPorts php5 port with the MacPorts mysql5 port, they  
"just work." PHP knows where the MySQL socket is. I don't use Ruby,  
but I would have hoped that MacPorts Ruby would also "just work" with  
MacPorts MySQL.





More information about the macports-users mailing list