运行时出现:
mysqli::real_connect(): Headers and client library minor version mismatch. Headers:50547 Library:50631
卸载mysqli,安装mysqlnd就可以了
ubantu:

  1. sudo apt-get remove php5-mysql
  2. sudo apt-get install php5-mysqlnd

centos:

  1. sudo yum remove php70w-mysql
  2. sudo yum install php70w-mysqlnd

记得重启php-fpm:

  1. sudo systemctl restart php-fpm

分类: web

标签:   php   mysql