mysqli::real_connect(): Headers and client library minor version mismatch.

运行CI时出现warning

mysqli/mysqli_driver.php

mysqli::real_connect(): Headers and client library minor version mismatch. Headers:50xxx Library:50xxx   

解决:

安装php-mysqlnd 代替php-mysql

如出现错误 php-mysql conflicts with php-mysqlnd-5.4.16-42.el7.x86_64

则先卸载php-mysql,再安装php-mysqlnd

yum remove php-mysql

yum install php-mysqlnd

你可能感兴趣的:(mysqli::real_connect(): Headers and client library minor version mismatch.)