yum update给出'已失效...'错误

时间:2018-03-13 09:59:41

标签: mysql yum

我的操作系统是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 clean metadatayum clean all,但它无效。 请帮帮我。

1 个答案:

答案 0 :(得分:2)

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

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

这将降低依赖性,因此将解决您的问题。

顺便提一下,请注意PHP 5.4.45已达到其使用寿命,所以我也衷心建议您更新到维护版本(5.6 +)

P.S。任何PHP版本> = 5.5的所有RPM都只提供php-mysqlnd包。