PHP55 and MySQL56 -- cannot connect

Ryan Schmidt ryandesign at macports.org
Fri Aug 1 11:40:36 PDT 2014


> On Aug 1, 2014, at 4:01 AM, aljoschapeters <apeters at gmx.net> wrote:
> 
> phpinfo() information for mysqli:
> <http://mac-os-forge.2317878.n4.nabble.com/file/n259928/mysqli.png> 
> 
> As you can see, I changed php.ini to point to the (hopefully)
> mysql.socket-file?!

That doesn't look like the right value for default_socket. Read the notes for the php55-mysql port:


$ port notes php55-mysql
php55-mysql has the following notes:
  To use mysqlnd with a local MySQL server, edit /opt/local/etc/php55/php.ini and set mysql.default_socket, mysqli.default_socket and pdo_mysql.default_socket to the path to your MySQL server's socket file.
  
  For mysql5, use /opt/local/var/run/mysql5/mysqld.sock
  For mysql51, use /opt/local/var/run/mysql51/mysqld.sock
  For mysql55, use /opt/local/var/run/mysql55/mysqld.sock
  For mysql56, use /opt/local/var/run/mysql56/mysqld.sock
  For mariadb, use /opt/local/var/run/mariadb/mysqld.sock
  For percona, use /opt/local/var/run/percona/mysqld.sock



More information about the macports-users mailing list