Hi:

I was testing a fresh install of mysql51-server (on 10.7.4) and I'm having a problem that the socket is not where it is supposed to be:

$ mysql5 < /opt/local/share/mythtv/database/mc.sql
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/opt/local/var/run/mysql5/mysqld.sock' (2)

$ mysql_config5 --socket
/opt/local/var/run/mysql5/mysqld.sock

$ ls -al /opt/local/var/run/mysql5/mysqld.sock
ls: /opt/local/var/run/mysql5/mysqld.sock: No such file or directory

$ ls -al /opt/local/var/run/mysql51
total 0
drwxr-xr-x  4 _mysql  _mysql  136 21 Jun 08:50 .
drwxr-xr-x  5 root    admin   170 21 Jun 09:06 ..
-rw-r--r--  1 root    _mysql    0  3 May 14:22 .turd_mysql51-server
srwxrwxrwx  1 _mysql  _mysql    0 21 Jun 08:50 mysqld.sock

I tried to use /opt/local/etc/mysql51/my.cnf to indicate the socket:
# Use default MacPorts settings
!include /opt/local/etc/mysql51/macports-default.cnf

# WCT modifications 2012Jun21 -
port            = 3306
socket          = /opt/local/var/run/mysql51/mysqld.sock

No success.  Should I file a ticket?  Is there a workaround in the meantime?

Craig

_______________________________________________
macports-dev mailing list
macports-dev@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-dev

Reply via email to