RE: [PHP-DB] MYSQL Problems Please help
| From: | Jason Wong | Date: | Thu, 04 Oct 2001 08:55:11 +0000 |
| Subject: | RE: [PHP-DB] MYSQL Problems Please help | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-12992@lists.php.net to get a copy of this message | ||
>-----Original Message-----
>From: Peter [mailto:develop@connectu.co.uk]
>Sent: 04 October 2001 16:42
>To: php-db@lists.php.net
>Subject: [PHP-DB] MYSQL Problems Please help
>
>
>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'
[snip]
>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.
Do:
/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:
/usr/include/mysql/mysql.h
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.
regards
--
Jason Wong
Gremlins Associates
www.gremlins.com.hk
Tel: +852-2573-5033
Fax: +852-2573-5851