>-----Original Message-----
>From: Peter [mailto:[EMAIL PROTECTED]]
>Sent: 04 October 2001 16:42
>Subject: [PHP-DB] MYSQL Problems Please help
>I am runing RH 7 Mysql (installed of RPM), Apache (compiled
>version) and PHP
>configure command './configure' '--with-xml'
>'--with-apache=../apache_1.3.19' '--enable-shared-pdflib'


>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

It sounds like the mysql server is not running.


  /etc/init.d/mysql status

If that says "mysql is not running" (or words to that effect) then do:

  /etc/init.d/mysql start

>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

IIRC you have to specify the parent directory. EG if you had:


then you would specify "/usr/include"

>runnig locate mysql.h brings back nothing.

If this is a fresh install you probably need to run "updatedb" to update the
db that locate uses.

Jason Wong
Gremlins Associates
Tel: +852-2573-5033
Fax: +852-2573-5851

PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to