Invalid mismatch between minor and minor library versions for mysqli MariaDB

I have this version of the headers:

PHP Version 5.4.4-14+deb7u5 Client API header version 5.5.31 

and I get this message: Warning: mysqli :: mysqli (): inconsistent small version of headers and client library. Headers: 50531 Library: 100004 reason - version mismatch, I think how can I recompile PHP to match mysqli version? I am using mariadb

 Client API library version 10.0.4-MariaDB 

thanks!

+7
php mysqli
source share
1 answer

I had the same problem when I recently upgraded my ubuntu server to 13.04, anyway it's just a warning from libmysqlclient I also have mariadb, you can use php5-mysqlnd instead of php5-mysql , this fixed it for me.

 sudo apt-get remove php5-mysql sudo apt-get install php5-mysqlnd 
+5
source share

All Articles