Admin-Ahead Community

Linux => General Linux => Topic started by: jominj on June 06, 2015, 09:44:04 pm

Title: Your PHP MySQL library version 5.1 differs from your MySQL server version 5.5
Post by: jominj on June 06, 2015, 09:44:04 pm
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.