Getting Minor Version Mismatch Error with Php and Mysql
3
votes
2
answers
11148
views
I randomly started getting this error when trying to instantiate a
new mysqli
instance in php script:
> mysqli::mysqli(): Headers and client library minor version mismatch.
> Headers:50541 Library:50626
I'm a little bit confused because when I run sudo yum list installed
, the versions look to be the same. Either way, running sudo yum update
does nothing to actually update the packages.
Here is the output for sudo yum list installed
(just php packages):
php.x86_64 5.4.16-36.el7_1 @updates
php-cli.x86_64 5.4.16-36.el7_1 @updates
php-common.x86_64 5.4.16-36.el7_1 @updates
php-devel.x86_64 5.4.16-36.el7_1 @updates
php-mbstring.x86_64 5.4.16-36.el7_1 @updates
php-mcrypt.x86_64 5.4.16-3.el7 @epel
php-mssql.x86_64 5.4.16-3.el7 @epel
php-mysql.x86_64 5.4.16-36.el7_1 @updates
php-pdo.x86_64 5.4.16-36.el7_1 @updates
php-soap.x86_64 5.4.16-36.el7_1 @updates
I am using CentOS Linux release 7.1.1503 (Core)
, PHP 5.4.16
and 5.6.26 MySQL Community Server
.
I saw on other answers to this question that you can install the php-mysqlnd
driver, but that driver isn't listed under yum's packages.
Here are the php packages I can install through yum:
php.x86_64 5.4.16-36.el7_1 @updates
php-cli.x86_64 5.4.16-36.el7_1 @updates
php-common.x86_64 5.4.16-36.el7_1 @updates
php-devel.x86_64 5.4.16-36.el7_1 @updates
php-mbstring.x86_64 5.4.16-36.el7_1 @updates
php-mcrypt.x86_64 5.4.16-3.el7 @epel
php-mssql.x86_64 5.4.16-3.el7 @epel
php-mysql.x86_64 5.4.16-36.el7_1 @updates
php-pdo.x86_64 5.4.16-36.el7_1 @updates
php-soap.x86_64 5.4.16-36.el7_1 @updates
Anybody know how I can resolve this issue? I don't know why this would randomly crop up like this. The scripts were working before I left for the weekend on Friday and, so far as I know, nothing has changed.
Asked by MrWizdl
(61 rep)
Aug 4, 2015, 02:29 PM
Last activity: May 3, 2020, 03:50 PM
Last activity: May 3, 2020, 03:50 PM