听说丶 2019-10-11 09:01 采纳率: 66.7%
浏览 977
已采纳

访问php页面报错mysql_connect(): Headers and client library minor version mismatch. Headers:50635 Library:50552

nginx+mysql+php环境,访问的php页面报错

------
errID:2
errStr:mysql_connect(): Headers and client library minor version mismatch. Headers:50635 Library:50552
errFile:IWEB_PATH/db/driver/mysql_class.php
errLine:27
errTime:19-10-11 08:54:43
##出错时变量的值:##
array (
  'dbinfo' => 
  array (
    'host' => 'localhost:3306',
    'user' => 'root',
    'passwd' => '123456',
    'name' => 'iwebshop',
  ),
)
-------

根据网上的答案
查看系统的php版本

[root@ekihin bin]# ./php -i|grep Client
PHP Warning:  Unknown: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Asia/Chongqing' for 'CST/8.0/no DST' instead in Unknown on line 0
Client API version => 5.5.52-MariaDB
Client statistics =>  
Client API version => mysqlnd 5.0.8-dev - 20102224 - $Id: 731e5b87ba42146a687c29995d2dfd8b4e40b325 $
Soap Client => enabled

然后根据他们的方法试了一下 还是不行
请问要怎么解决这个问题

  • 写回答

1条回答 默认 最新

  • threenewbee 2019-10-11 09:04
    关注

    Headers and client library minor version mismatch.
    头文件和lib库文件的版本不匹配,你得找到完整的一套mysql_connect重新编译。

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 任务A:大数据平台搭建(容器环境)怎么做呢?
  • ¥15 r语言神经网络自变量重要性分析
  • ¥15 基于双目测规则物体尺寸
  • ¥15 wegame打不开英雄联盟
  • ¥15 公司的电脑,win10系统自带远程协助,访问家里个人电脑,提示出现内部错误,各种常规的设置都已经尝试,感觉公司对此功能进行了限制(我们是集团公司)
  • ¥15 救!ENVI5.6深度学习初始化模型报错怎么办?
  • ¥30 eclipse开启服务后,网页无法打开
  • ¥30 雷达辐射源信号参考模型
  • ¥15 html+css+js如何实现这样子的效果?
  • ¥15 STM32单片机自主设计