Re: MySQL, PHP low-load problems
| From: | Rasmus Lerdorf | Date: | Sat, 21 Apr 2001 03:48:16 +0000 |
| Subject: | Re: MySQL, PHP low-load problems | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-49638@lists.php.net to get a copy of this message | ||
> We are using the following piece of code to connect to the dbase:
>
>
> if(!mysql_pconnect($db[$no]["host"],$db[$no]["user"],$db[$no]["pass"])){
>
> if(!mysql_connect($db[$no]["host"],$db[$no]["user"],$db[$no]["pass"])){
> die(error(55));
Could you explain why you are connecting like that? Failing over from a
pconnect to a connect doesn't make much sense to me.
> php-config:
> ./configure --with-apache=../apache_1.3.19 --enable-track-vars \
> --enable-magic-quotes --with-gd=/usr/local --with-mysql --with-zlib=../zlib-
> 1.1.3
To be perfectly safe, I would compile PHP against the version of the mysql
client library that matches your server. ie. install the mysql client
library on your web server machine and build PHP using --with-mysql=/path
--with-mysql by itself will use the generic PHP-bundled mysql client
library which should theoretically work with all versions of MySQL, but
since you are seeing problems it would be a place to start.
-Rasmus