Your PHP MySQL library version 5.5.50 differs from your MySQL server version 5.6.31. This may cause unpredictable behavior.

July 24, 2016 7.2k views
MySQL PHP Ubuntu

So I upgraded mysql from 5.5 to 5.6 and now PHPmyadmin shows me this message :

Your PHP MySQL library version 5.5.50 differs from your MySQL server version 5.6.31. This may cause unpredictable behavior.

Is there any way that I can solve this ?

3 Answers

Hello, try the command:

sudo apt-get update
sudo apt-get install php5-mysqlnd

Then restart apache2 and mysql, please write us if it works

Hello,

Try running the commands below to update php-mysql.

apt-get update
apt-get install php5-mysql
apt-get install php5-mysqli

Once done, restart your web server.

Hi ...

I got this message :

Building dependency tree
Reading state information... Done
Package php5-mysqli is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
php5-mysqlnd:i386 php5-mysql:i386 php5-mysqlnd php5-mysql

E: Package 'php5-mysqli' has no installation candidate

Have another answer? Share your knowledge.