php-mysql问题:mysqli_connect(): Headers and client library minor version mismatch. Headers:50556 Library:50637

问题现象

mysqli_connect(): Headers and client library minor version mismatch. Headers:50556 Library:50637

确认安装信息

发现问题所在

php -i | grep Client

Client API version => 5.6.37

Client API library version => 5.6.37

Client API header version => 5.5.56-MariaDB

Client API version => 5.6.37

解决方法

yum remove php-mysql
yum install php-mysqlnd

重启 nginx,php-fpm

systemctl restart php-fpm
systemctl restart nginx

遇到问题的场景

我是在安装Z-Blog时遇到的报错,还需要注意一点,就是关闭SElinux。

因为一旦c_option.php创建失败,Z-Blog的模板就在也编译不出来了,所以这一系列动作必须一气呵成,才能成功安装。

在第3步之前通过setenforce 0,临时关闭SELinux就可以成功安装了。

原文地址:https://www.cnblogs.com/zhaijiahui/p/8467686.html

时间: 2024-08-01 18:05:37

php-mysql问题:mysqli_connect(): Headers and client library minor version mismatch. Headers:50556 Library:50637的相关文章

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

php -i|grep Client 查询当前Client 版本,结果如下: Client API version => 5.6.31Client API library version => 5.6.31Client API header version => 5.5.47-MariaDBClient API version => 5.6.31 1 yum remove php-mysql 2 yum install php-mysqlnd 原文地址:https://www.cn

centOS7关于pull 命令时报错:get https://registry-1.docker.io/v2/:ner/http:TLS handshake timeout 或者 request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers

参考文件:https://www.cnblogs.com/icebutterfly/p/9489133.html 报错:get https://registry-1.docker.io/v2/:ner/http:TLS handshake timeout 或者 request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers 原因:连接不到 镜像库所致: 解决办法: 1.运行

Error response from daemon: Get https://registry-1.docker.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)

sudo docker run hello-world docker: Error response from daemon: Get https://registry-1.docker.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers).See 'docker run --help'. 修改docker镜像源: docke

This version of the rendering library is more recent than your version of IntelliJ IDEA.

今天往idea里导入其他项目时又遇到了一个问题,单独标记一下. 导入后打开一个布局xml文件,发现不能渲染,报错为: This version of the rendering library is more recent than your version of IntelliJ IDEA. Please update IntelliJ IDEA 看字面意思就是idea的渲染库版本不对,让你升级idea.因为之前升级过android sdk,就想到了以前eclipse的老问题:adt的升级.难

This version of the rendering library is more ....

地址:http://stackoverflow.com/questions/18852983/eclipse-reports-rendering-library-more-recent-than-adt-plug-in This version of the rendering library is more recent than your version of ADT plug-in. Please update 预览layout.xml文件时提示: This version of the

【转】This version of the rendering library is more recent than your version of ADT plug-in. Please update ADT plug-in

原文网址:http://1982106a.blog.163.com/blog/static/8436495620149239361692/ 预览layout.xml文件时提示: This version of the rendering library is more recent than your version of ADT plug-in. Please update ADT plug-in 导致无法正常预览布局文件: 问题根源:SDK版本过高,ADT版本低: 解决办法有好几种,如下:

This version of the rendering library is more recent than your version of ADT plug-in. Please update

预览layout.xml文件时提示: This version of the rendering library is more recent than your version of ADT plug-in. Please update ADT plug-in 导致无法正常预览布局文件: 问题根源:SDK版本过高,ADT版本低: 解决办法有好几种,如下: 1. Click Help > Install New Software. In the Work with field, enter: h

错误:Cannot mix incompatible Qt library (version 0x50601) with this library (version 0x50602) 已放弃

今天在编译完deepin最新的软件包安装器,运行的时候出现Cannot mix incompatible Qt library (version 0x50601) with this library (version 0x50602) 已放弃这个错误,搜索了一下,发现网上的解决方法寥寥无几,但最终还是找到了方法成功解决了. 错误:Cannot mix incompatible Qt library (version 0x50601) with this library (version 0x50

This version of the rendering library is more recent than your version of ADT plug-in

使用ADT导入一个demo,结果xml布局文件无法预览,并显示以下提示信息: This version of the rendering library is more recent than your version of ADT plug-in. Please update ADT plug-in 上网搜了搜,对插件进行更新后就可以正常显示预览了: help --> Install New Softwares...: 在Work with 中输入如下链接: https://dl-ssl.go