Issue
Several days ago during an update of MariaDB packages from public repositories, you may face the following warning message:
PHP Warning: mysqli::mysqli(): Headers and client library minor version mismatch. Headers:100337 Library:30120
Environment
- CloudLinux 7
- CloudLinux 8
Solution
Update packages to the latest version. As an option from the "rollout" or from the "beta" repository:
yum update alt-php*-mariadb* --enablerepo=cloudlinux-rollout-3-bypass
Please note the packages should be also moved to the "stable" repository soon.
Cause
The issue was caused by an update of MariaDB packages from public repositories.
Affected versions are:
MariaDB-client-10.3.38-1.el7.centos.x86_64 @MariaDB103
MariaDB-common-10.3.38-1.el7.centos.x86_64 @MariaDB103
MariaDB-compat-10.3.38-1.el7.centos.x86_64 @MariaDB103
MariaDB-devel-10.3.38-1.el7.centos.x86_64 @MariaDB103
MariaDB-server-10.3.38-1.el7.centos.x86_64 @MariaDB103
MariaDB-shared-10.3.38-1.el7.centos.x86_64 @MariaDB103
MariaDB-client-10.5.19-1.el7.centos.x86_64 @MariaDB105
MariaDB-common-10.5.19-1.el7.centos.x86_64 @MariaDB105
MariaDB-compat-10.5.19-1.el7.centos.x86_64 @MariaDB105
MariaDB-devel-10.5.19-1.el7.centos.x86_64 @MariaDB105
MariaDB-server-10.5.19-1.el7.centos.x86_64 @MariaDB105
MariaDB-shared-10.5.19-1.el7.centos.x86_64 @MariaDB105
According to the https://mariadb.com/kb/en/mariadb-connector-c-3-1-20-changelog/
MariaDB team change returning result for mysql_get_client_version() from server version to client library version, but php code doesn't know about it and expects server version from this function, so there is the problem.
This problem doesn't relate to the CloudLinux components, it's problem with compatibility between the new version of MariaDB 10.3/10.4/10.5 and the PHP extension "mysqli".
Comments
0 comments
Please sign in to leave a comment.