RE: [PHP] mysql.sock file location

From: Date: Thu, 25 Sep 2003 14:06:23 +0000
Subject: RE: [PHP] mysql.sock file location
Groups: php.general 
Request: Send a blank email to php-general+get-163906@lists.php.net to get a copy of this message
[snip] I meant "mysql.sock", sorry. Does anyone know how to tell PHP to look in a different location for the mysql.lock file? It's currently looking in /tmp/ and that's wrong. [/snip] But MySQL is running? PHP AFAIK doesn't care where mysql.sock is, unless it is not the default. locate mysql.sock look in my.conf to see if the paths match if not, change the path in my.conf and restart mysql There is a PHP directive in the php.ini ; Default socket name for local MySQL connects. If empty, uses the built-in ; MySQL defaults. mysql.default_socket = where you can specify the location of the sock if need be.

« previous php.general (#163906) next »