3 May
2007
3 May
'07
7:47 a.m.
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.