gpt4 book ai didi

php - mysql_connect() : Headers and client library minor version mismatch Library:100005

转载 作者:可可西里 更新时间:2023-11-01 07:05:20 24 4
gpt4 key购买 nike

自从我上周五执行了常规包更新后,我的网络服务器出现了一个相当棘手的问题。使用 mysql_connect() 时出现错误。

Warning: mysql_connect(): Headers and client library minor version mismatch. Headers:50532 Library:100005 in /srv/www/***/wp-includes/wp-db.php on line 1142

当我运行 php -i 时,我得到:

mysqli

MysqlI Support => enabled
Client API library version => 10.0.5-MariaDB
Client API header version => 5.5.32

apt-get 安装 mariadb*

已安装以下软件包的结果:

libmariadbclient18 is already the newest version.
libmariadbclient18 set to manually installed.
mariadb-client is already the newest version.
mariadb-client-10.0 is already the newest version.
mariadb-client-10.0 set to manually installed.
mariadb-client-core-10.0 is already the newest version.
mariadb-client-core-10.0 set to manually installed.
mariadb-common is already the newest version.
mariadb-common set to manually installed.
mariadb-server is already the newest version.
mariadb-server-10.0 is already the newest version.
mariadb-server-10.0 set to manually installed.
mariadb-server-core-10.0 is already the newest version.
mariadb-server-core-10.0 set to manually installed.

我已经在整个网络上查找了这个问题,但是类似的问题似乎都没有带有库版本的 -MariaDB 标签。

所以我不知道如何解决这个问题。

非常感谢您的帮助!

编辑:

php -i mysql:

MySQL Support => enabled
Client API version => 10.0.5-MariaDB

奇怪的是,没有提及客户端 API 库版本或本节中的客户端 API header 版本。

最佳答案

为 PHP 启用 mysqlndnd_mysqlnd_mysqli 扩展,如果启用了 mysql 和 mysqli (PHP 5.5),则禁用它们。

响应较晚,但它在搜索结果中排名靠前,这是对我有用的解决方案,因为我没有服务器的管理员访问权限。

关于php - mysql_connect() : Headers and client library minor version mismatch Library:100005,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19910996/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com