解决Warning: mysql_connect(): Headers and client library minor version mismatch. 警告

php -i|grep Client

查询当前Client 版本,结果如下:

Client API version => 5.6.31
Client API library version => 5.6.31
Client API header version => 5.5.47-MariaDB
Client API version => 5.6.31

 

1 yum remove php-mysql  
2 yum install php-mysqlnd  

 

posted @ 2018-06-21 11:49  aboys  阅读(2031)  评论(0编辑  收藏  举报