MYSQL Problems Please help

From: Date: Thu, 04 Oct 2001 08:42:20 +0000
Subject: MYSQL Problems Please help
Groups: php.db 
Request: Send a blank email to php-db+get-12991@lists.php.net to get a copy of this message
I am runing RH 7 Mysql (installed of RPM), Apache (compiled version) and PHP 4.0.4pl1 configure command './configure' '--with-xml' '--with-apache=../apache_1.3.19' '--enable-shared-pdflib' '--enable-track-vars' I am trying to connect to a mysql database using the following: <html> <Body> <? echo "Php is starting here<br>"; $host = "localhost"; $user = "root"; $password = "password here"; $database = "webgen"; echo "trying to connect to $host as $user<br>"; $db = mysql_connect($host,$user,$password) or die ("Connection could not be established<br>"); echo "Connected<br>"; echo "End of PHp.<br>"; ?> </body> </html> and I am getting the following error Warning: MySQL Connection Failed: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111) in /home/webgen/public_html/index3.php on line 10 I have tried to recompile PHP using --with-mysql but it wont compile even if I specify the mysql location. It claims it cant find mysql.h runnig locate mysql.h brings back nothing.

« previous php.db (#12991) next »