自从上周五进行了常规软件包更新后,我的网络服务器出现了一个相当棘手的问题。我在使用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头的版本。
启用 PHP 的 mysqlnd 、 nd_mysql 和 nd_mysqli 扩展,如果启用了 mysql 和 mysqli,则禁用它们(PHP 5.5)。
迟来的回应,但这在搜索结果中很高,而且这是对我有效的解决方案,因为我没有对服务器的管理权限。