And here: mine-macbook-pro:etc jasper$ cat php.ini | grep socket ; Default timeout for socket based streams (seconds) ; http://php.net/default-socket-timeout default_socket_timeout = 60 ;extension=php_sockets.dll ; Default socket name for local MySQL connects. If empty, uses the built-in ; http://php.net/pdo_mysql.default-socket pdo_mysql.default_socket=/tmp/mysql.sock ; Default socket name for local MySQL connects. If empty, uses the built-in ; http://php.net/mysql.default-socket mysql.default_socket = /tmp/mysql.sock ; Default socket name for local MySQL connects. If empty, uses the built-in ; http://php.net/mysqli.default-socket mysqli.default_socket = /tmp/mysql.sock
So php.ini has the socket located in /tmp/mysql.sock instead of /opt/local/var/run/mysql5/ mysqld.sock where the socket is. I wonder how that ever happened... Will try to change the php.ini later and post back. Thanks for all the tips so far!! On Wed, Jan 13, 2010 at 11:00 PM, Jasper Frumau <[email protected]>wrote: > Here is my PHP Ini output: http://pastebin.com/m6f9b6e34 . MySQL socket > and MySQLi socket are not set it seems, which is odd. PDO_MySQL is set, but > not correct it seems. So I guess I need to add /opt/local/var/run/mysql5/ > mysqld.sock in these three places I guess? > > > On Wed, Jan 13, 2010 at 9:30 PM, Ryan Schmidt <[email protected]>wrote: > >> Ok, so you discovered MacPorts MySQL is running and its socket is in the >> usual place for MacPorts MySQL, /opt/local/var/run/mysql5/mysqld.sock. >> That's the usual place MacPorts PHP looks for it, too. Perhaps you told >> MacPorts PHP to look for the socket somewhere else. Edit your php.ini and >> tell it the socket is located at the above path. The three ini settings to >> edit are mysql.default_socket, mysqli.default_socket and >> pdo_mysql.default_socket. >> >> >
_______________________________________________ macports-users mailing list [email protected] http://lists.macosforge.org/mailman/listinfo.cgi/macports-users
