gpt4 book ai didi

mysql - yum 更新出现 'Obsoleted by ...' 错误

转载 作者:行者123 更新时间:2023-11-29 06:46:20 25 4
gpt4 key购买 nike

我的操作系统是CentOS 6.9,我正在尝试通过此链接将 mysql 5.5 升级到 5.7:https://support.plesk.com/hc/en-us/articles/213403429-How-to-upgrade-MySQL-5-5-to-5-6-5-7-or-MariaDB-5-5-to-10-0-10-1-10-2-on-Linux

但是# yum update mysql给了我错误:

Error: Package: php-mysql-5.4.45-14.el6.remi.x86_64 (@remi)
Requires: libmysqlclient.so.18()(64bit)
Removing: mysql-libs-5.5.59-1.el6.remi.x86_64 (@remi)
libmysqlclient.so.18()(64bit)
Obsoleted By: mysql-community-libs-5.7.21-1.el6.x86_64 (mysql57-community)
Not found
Error: Package: php-mysql-5.4.45-14.el6.remi.x86_64 (@remi)
Requires: libmysqlclient.so.18(libmysqlclient_18)(64bit)
Removing: mysql-libs-5.5.59-1.el6.remi.x86_64 (@remi)
libmysqlclient.so.18(libmysqlclient_18)(64bit)
Obsoleted By: mysql-community-libs-5.7.21-1.el6.x86_64 (mysql57-community)
Not found
Error: Package: php-mysql-5.4.45-14.el6.remi.x86_64 (@remi)
Requires: libmysqlclient.so.18(libmysqlclient_16)(64bit)
Removing: mysql-libs-5.5.59-1.el6.remi.x86_64 (@remi)
libmysqlclient.so.18(libmysqlclient_16)(64bit)
Obsoleted By: mysql-community-libs-5.7.21-1.el6.x86_64 (mysql57-community)
Not found

我尝试了yum cleanmetadatayum clean all几次,但它不起作用。请帮助我。

最佳答案

我建议从php-mysql(使用libmysqlclient)切换到php-mysqlnd,它使用PHP native 驱动程序提供相同的扩展集。

yum shell
> remove php-mysql
> install php-mysqlnd
> run

这将消除依赖性,从而解决您的问题。

顺便说一句,请注意 PHP 5.4.45 已达到生命周期的终点,因此我也衷心建议您更新到维护版本(5.6+)

附言任何 PHP 版本 >= 5.5 的所有 RPM 均仅提供 php-mysqlnd 软件包。

关于mysql - yum 更新出现 'Obsoleted by ...' 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49253179/

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