[MacPorts] #22217: No mysql.sock, mysqld.sock, mysqli.sock, or any *.sock
MacPorts
noreply at macports.org
Fri Oct 23 18:18:14 PDT 2009
#22217: No mysql.sock, mysqld.sock, mysqli.sock, or any *.sock
----------------------------+-----------------------------------------------
Reporter: me@… | Owner: ryandesign@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 1.8.0
Keywords: | Port: mysql5
----------------------------+-----------------------------------------------
Comment(by ryandesign@…):
"locate" only updates things once a week or so. Try "find" instead.
The directory /opt/local/var/run/mysql5 should exist if you installed the
mysql5-server port. Did you? Is your MySQL server running?
php5 needs to be told where the socket is. The php5-mysql port printed
this instruction for you when you installed it:
{{{
To use mysqlnd with a local MySQL server, edit /opt/local/etc/php5/php.ini
and set
mysql.default_socket, mysqli.default_socket and pdo_mysql.default_socket
to /opt/local/var/run/mysql5/mysqld.sock
}}}
Did you do that?
FYI, see also #21250 which is the request to make modifications to your
php.ini unnecessary.
--
Ticket URL: <http://trac.macports.org/ticket/22217#comment:2>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list