Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: Your PHP MySQL library version 5.1 differs from your MySQL server version 5.5  (Read 4375 times)

0 Members and 1 Guest are viewing this topic.

jominj

  • Guest
Some times after upgrading the MySQL server version we will get error like the following, while accessing the PhpMyAdmin
Code: [Select]
Your PHP MySQL library version 5.1.54 differs from your MySQL server version 5.5.43. This may cause unpredictable behavior.
The reason for this error is your php-mysql driver and MySQL server have different versions. To avoid the compatibility issues we have to upgrade the php-mysql also.

In normal CentOS device we can remove the old version of php-mysql and install the latest version compatible with the MySQL server, we have installed.

Code: [Select]
# yum install php5-mysql
While in a cPanel server, the safest way to upgrade the MySQL is from the WHM interface itself.

Go to >> WHM >> Software >> Upgrade MySQL.

Here you can specify the version of MySQL server you want to upgrade to and then use Easy Apache to upgrade the Apache and PHP version which is compatible.