[imp] /tmp/mysql.sock issue

Max Kalika max@lsit.ucsb.edu
Thu, 21 Mar 2002 17:50:42 -0800


Quoting "Oliver Schulze L." <oliver@samera.com.py>:

> I don't know why PHP choose to comunicate with MySQL via this
> file socket that does not exist:
> /tmp/mysql.sock
> and not via this file socket that does exist:
> /var/lib/mysql/mysql.sock

Because that is how your php is configured.  Edit your php.ini and set 

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

Don't forget to restart the web server after making a change to php.ini.

-- 
---max kalika
--max@lsit.ucsb.edu
-lsit systems administrator