Hi all,
I was wondering if any one is having the same issues I am having. Essentially I was building a test box running php 4.3.0, apache 1.3.27 and mysql 3.23.54. I have build php with the --with-mysql option. everything else builds just fine and phpinfo() looks good to me. When I run a test script with mysql_connect(), I get the following error:
Warning: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) in /usr/www/htdocs/test.php on line 2
Warning: MySQL Connection Failed: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) in /usr/www/htdocs/test.php on line 2
Could not connect: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
It is not an issue with the server running or passwd issues. I have verified that I can connect via a mysql client from a remote and local session. I am kinda wondering if it has to do with the internal mysql support within php. Any ideas would be very helpful.
Thanks in advance
Shantu