`
JasonShieh
  • 浏览: 526736 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

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
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics