Change the mysql.sock that the system PHP uses

Posted by Mark P. on Super User See other posts from Super User or by Mark P.
Published on 2010-09-28T10:40:01Z Indexed on 2010/12/24 20:55 UTC
Read the original article Hit count: 299

Filed under:
|
|
|

In the past I had installed MySQL as part of XAMPP in /Applications/XAMPP/ and the PHP that the system used (e.g. from command line) used /Applications/XAMPP/xamppfiles/var/mysql/mysql.sock to connect with MySQL.

Now I have installed MySQL 5 with macports and I want my system PHP to be able to use that. I think I must set PHP to use /opt/local/var/run/mysql5/mysqld.sock but where do I set this? Is there a php.ini for CLI PHP?

© Super User or respective owner

Related posts about php

Related posts about mysql