I have a MYSQL database that I process using a PHP front-end. These run on a MacBook Pro using OS X Snow Leopard 10.6.4. This worked fine until a few days ago when I did a system update. At that point, I started getting the following message:
There is no //var/mysql/mysql.sock file on my system. The only mysql.sock file is in the /private/tmp directory. My php.ini file points to
Can anyone help me out with this? I'm no php or mysql guru, so my only option right now seems to be reinstalling php or mysql.
Thanks....
Code:
Warning: mysql_connect() [function.mysql-connect]: [2002] No such file or directory (trying to connect via unix:///var/mysql/mysql.sock) in /Users/peterv/Sites/INCLUDES/dbconnect.php on line 3
Warning: mysql_connect() [function.mysql-connect]: No such file or directory in /Users/peterv/Sites/INCLUDES/dbconnect.php on line 3
Connect failed: No such file or directory
There is no //var/mysql/mysql.sock file on my system. The only mysql.sock file is in the /private/tmp directory. My php.ini file points to
Code:
/opt/local/etc ->
peterv@MBP17.local<524>$: nl php.ini
1 mysql.default_socket = /tmp/mysql.sock
Thanks....