Hi everyone,
I have just compiled/made PHP 4.3.1 on my Mandrake 9 Linux box, and everything seemed to be going fine--the core PHP functions worked fine, and all the tests that I ran with make test passed with flying colors. However, when I tried out an older script of mine that used MySQL connect functions, it balked, and gave me the following error:
Warning: mysql_connect() [function.mysql-connect]: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) in /var/www/html/mtest.php on line 7
Could not connect: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
So, I figured I just needed to start up my MySQL daemon, which I proceeded to do. Yet still, I received this error again when trying to reload the mtest.php file. Is there something I forgot to configure when I configured my PHP installation? Here is my configure line:
'./configure' '--with-mysql' '--with-apxs' '--with-xml' '--enable-xslt' '--with-xslt-sablot=/usr/local/sablot' '--with-iconv'
And after looking at my phpinfo() page, MySQL appeared that it SHOULD work, but the functions for it do not. (Also, I thought that my newly configured sablotron would work also, but its functions don't work either!?)
Thanks for any help--I have been searching all around for why this is happening, but still no findings. Thanks!