warning: mysqli::real_connect(): Headers and client library minor version mismat

Nginx:
Nginx下设置伪静态方法与Apache差不多,直接在nginx.conf (或者在对应的*.conf) 中找到需设置伪静态规则的服务器对应字段,在server{ location/{ } }中添加以下代码:

server {
listen 80 default_server;
server_name _;
location / {
root /usr/share/nginx/html;
index index.html index.htm;
rewrite ^(.*)list-([0-9]+)-([0-9]+)\.html$ $1list.php?page=$2&id=$3;
}
}
添加后重启Nginx服务即可生效!

There is a version mismatch. I tried removing php-mysql and replace it with php-mysqlnd to in order to fix the conflict.

On Centos, running the one liner

rpm -e --nodeps php-mysql && yum install php-mysqlnd -y && service httpd graceful

according to the answer at the bottom of this page got the php-mysqlnd installed.

But be warned, this rpm --nodeps option is considered harmful according to http://www.tummy.com/blogs/2005/08/12/-force-nodeps-considered-harmful/.

My server doesn't show the errors after doing that.

I'm using Centos 7, php-mysqlnd-5.4.16-23, php 5.4.16, mysql Distrib 5.6.23, and apache 2.2.x

权限问题:执行命令:chown user:user【用户名】 $path【网站目录】 -R
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值