phpinfo.php shows wrong version of MySQL

CiscoMike

Verified User
Joined
Dec 2, 2005
Messages
62
Location
Denver, CO
I installed MySQL 4.1.15 and that's working fine. I've verified that it's installed via both "yum list", phpmyadmin and within MySQL itself. So how come my phpinfo file is still coming up with :

Client API version: 4.1.11

I've restarted mysql, apache and the box itself. I installed:

MySQL-server-standard-4.1.15-0.rhel4.i386.rpm
MySQL-client-standard-4.1.15-0.rhel4.i386.rpm
MySQL-devel-standard-4.1.15-0.rhel4.i386.rpm

on a CentOS 4.2 system running apache 1.3.34. Nothing to be concerned about? rebuild apache? unplug the server? ;-)
 
edit: ok, I *thought* it was because I hand't compiled PHP after I was done and then restarted apache. That's not it. So...any reason why after updating to 4.1.15, rebuilding php and restarting apache that php still thinks that I'm using 4.1.11 (or at least using that client library?)
 
Last edited:
I think this has been covered before on these forums. If memory serves right, you need to specify the path to the new MySQL libraries in configure.php and then rebuild php.
 
actually, it turns out I ran into an old bug and I had to recompile php again. What happened is that when I was running ./build, my ssh session crapped out (0.9.8a) during the php build stage. I mistakenly thought it had completed. It didn't.

I reran ./build php and after 2 additional ssh sessions died, the 4th one finally worked and all was well again in the universe. So it's all good now. But thanks for the pointer. thankfully I had that one covered.
 
I think I am in the same problem, what do you think?

Some days ago I upgraded PHP and MySQL to 4.14.
However today I noticed in phpinfo that
Client API version is 4.0.23 I wonder if this difference of versions may be cause problems to complex scripts like
SugarCRM, vTiger of phpmyAdmin.
 
well, with MySQL you need to install 3 packages: server, client and the library. If you only install the server, then your client version stays the same. If you are running server 4.1.x and client 4.0.x, prepare for fun and games galore relating to old passwords.

then you rebuild customapache and everything is happy.
 
It all depends on how you updated PHP. There are actually two instances of php on the server; the one that runs standalone and the one that runs inside apache.

When you run phpinfo.php, it queries the php that runs as an apache module.

And you can believe it.

Jeff
 
Back
Top