PHP MySQL version discrepancy

Support for webhosts that use CentOS
Posts: 1
Joined: 2009/02/04 19:08:25

PHP MySQL version discrepancy

Postby billuk » 2009/02/04 19:18:42


I have installed PHP, and MySQL (v.5.0.28) using
yum install php
yum install mysql
yum install php-mysql

When I use phpMyAdmin I get this warning:

Your PHP MySQL library version 4.1.22 differs from your MySQL server version 5.0.28

In phpinfo(), the Client API version is listed as 4.1.22.

So, how can I get around this, I assumed (incorrectly) that the appropriate version would be installed. The version of php-mysql is listed as 5.2.8

Please help!!

Thanks in advance :)

Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Re: PHP MySQL version discrepancy

Postby gerald_clark » 2009/02/04 20:23:19

CentOS does not come with MySQL Version 5.
Where did you get it?
Maybe you should get your PHP there as well,
or stick with the Mysql 4.1.22 that ships with CentOS 4.

Please read these: ... p?forum=48

What repositories have you enabled?

Posts: 1
Joined: 2009/03/17 04:34:36

Re: PHP MySQL version discrepancy

Postby robvsr » 2009/03/17 04:37:56

enable the remi repo

it has mysql5 client & server. (don't forget to shutdown mysqld before you upgrade/install). :-D