[MacPorts] #43088: mysql5 @5.1.72 uses /tmp for socket

Bradley Giesbrecht pixilla at macports.org
Wed Mar 26 15:03:40 PDT 2014


On Mar 26, 2014, at 1:44 PM, MacPorts <noreply at macports.org> wrote:

> Any suggestions on how to get the older machine to behave like the new
> one?  ;)


I would guess you have directives in a my.cnf file somewhere. To test this do the following.

sudo port unload mysql5-server
sudo mv /opt/local/etc/mysql5/my{,-old}.cnf
sudo port deactivate mysql5-server mysql5
sudo port activate mysql5-server mysql5
sudo port load mysql5-server
mysql5 -uroot -p -e 'SHOW VARIABLES LIKE "%socket%";'

If the above shows your socket at "/opt/local/var/run/mysql5/mysqld.sock" then examine the contents of /opt/local/etc/mysql5/my-old.cnf for a socket path influencing directive.


Regards,
Bradley Giesbrecht (pixilla)



More information about the macports-dev mailing list