View Full Version : how do I change the mysql access socket?

03-03-2009, 12:52 AM
I'm using php 5 and mysql 5.0.67. php wants to access it using

'MYSQL_UNIX_ADDR ="/var/mysql/mysql.sock" which is set in a c header file

mysql uses MYSQL_UNIX_ADDR = "/tmp/mysql.sock"

how do I configure php to use the correct file?

03-03-2009, 01:44 PM
changed in /etc/php.ini, in the section [MySQL] from:

mysql.default_socket = /var/mysql/mysql.sock


mysql.default_socket = /mysql/mysql.sock

then restarted apache

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum