mysql rpm conflict_解决centos7 yum安装MySQL rpm包出现conflict problem

[root@localhost mysqlrmp]# rpm -ivh MySQL-server-5.6.37-1.el7.x86_64.rpm

出现如下报错:

Preparing... ################################# [100%]

file /usr/share/mysql/charsets/README from install of MySQL-server-5.6.37-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.44-2.el7.centos.x86_64

file /usr/share/mysql/czech/errmsg.sys from install of MySQL-server-5.6.37-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.44-2.el7.centos.x86_64

file /usr/share/mysql/danish/errmsg.sys from install of MySQL-server-5.6.37-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.44-2.el7.centos.x86_64

file /usr/share/mysql/dutch/errmsg.sys from install of MySQL-server-5.6.37-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.44-2.el7.centos.x86_64

file /usr/share/mysql/english/errmsg.sys from install of MySQL-server-5.6.37-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.44-2.el7.centos.x86_64

file /usr/share/mysql/estonian/errmsg.sys from install of MySQL-server-5.6.37-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.44-2.el7.centos.x86_64

file /usr/share/mysql/french/errmsg.sys from install of MySQL-server-5.6.37-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.44-2.el7.centos.x86_64

file /usr/share/mysql/german/errmsg.sys from install of MySQL-server-5.6.37-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.44-2.el7.centos.x86_64

file /usr/share/mysql/greek/errmsg.sys from install of MySQL-server-5.6.37-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.44-2.el7.centos.x86_64

file /usr/share/mysql/hungarian/errmsg.sys from install of MySQL-server-5.6.37-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.44-2.el7.centos.x86_64

file /usr/share/mysql/italian/errmsg.sys from install of MySQL-server-5.6.37-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.44-2.el7.centos.x86_64

file /usr/share/mysql/japanese/errmsg.sys from install of MySQL-server-5.6.37-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.44-2.el7.centos.x86_64

file /usr/share/mysql/korean/errmsg.sys from install of MySQL-server-5.6.37-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.44-2.el7.centos.x86_64

file /usr/share/mysql/norwegian-ny/errmsg.sys from install of MySQL-server-5.6.37-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.44-2.el7.centos.x86_64

file /usr/share/mysql/norwegian/errmsg.sys from install of MySQL-server-5.6.37-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.44-2.el7.centos.x86_64

file /usr/share/mysql/polish/errmsg.sys from install of MySQL-server-5.6.37-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.44-2.el7.centos.x86_64

file /usr/share/mysql/portuguese/errmsg.sys from install of MySQL-server-5.6.37-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.44-2.el7.centos.x86_64

file /usr/share/mysql/romanian/errmsg.sys from install of MySQL-server-5.6.37-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.44-2.el7.centos.x86_64

file /usr/share/mysql/russian/errmsg.sys from install of MySQL-server-5.6.37-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.44-2.el7.centos.x86_64

file /usr/share/mysql/serbian/errmsg.sys from install of MySQL-server-5.6.37-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.44-2.el7.centos.x86_64

file /usr/share/mysql/slovak/errmsg.sys from install of MySQL-server-5.6.37-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.44-2.el7.centos.x86_64

file /usr/share/mysql/spanish/errmsg.sys from install of MySQL-server-5.6.37-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.44-2.el7.centos.x86_64

file /usr/share/mysql/swedish/errmsg.sys from install of MySQL-server-5.6.37-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.44-2.el7.centos.x86_64

file /usr/share/mysql/ukrainian/errmsg.sys from install of MySQL-server-5.6.37-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.44-2.el7.centos.x86_64

file /usr/share/mysql/charsets/Index.xml from install of MySQL-server-5.6.37-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.44-2.el7.centos.x86_64

file /usr/share/mysql/charsets/armscii8.xml from install of MySQL-server-5.6.37-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.44-2.el7.centos.x86_64

file /usr/share/mysql/charsets/ascii.xml from install of MySQL-server-5.6.37-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.44-2.el7.centos.x86_64

file /usr/share/mysql/charsets/cp1250.xml from install of MySQL-server-5.6.37-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.44-2.el7.centos.x86_64

file /usr/share/mysql/charsets/cp1251.xml from install of MySQL-server-5.6.37-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.44-2.el7.centos.x86_64

file /usr/share/mysql/charsets/cp1256.xml from install of MySQL-server-5.6.37-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.44-2.el7.centos.x86_64

file /usr/share/mysql/charsets/cp1257.xml from install of MySQL-server-5.6.37-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.44-2.el7.centos.x86_64

file /usr/share/mysql/charsets/cp850.xml from install of MySQL-server-5.6.37-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.44-2.el7.centos.x86_64

file /usr/share/mysql/charsets/cp852.xml from install of MySQL-server-5.6.37-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.44-2.el7.centos.x86_64

file /usr/share/mysql/charsets/cp866.xml from install of MySQL-server-5.6.37-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.44-2.el7.centos.x86_64

file /usr/share/mysql/charsets/dec8.xml from install of MySQL-server-5.6.37-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.44-2.el7.centos.x86_64

file /usr/share/mysql/charsets/geostd8.xml from install of MySQL-server-5.6.37-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.44-2.el7.centos.x86_64

file /usr/share/mysql/charsets/greek.xml from install of MySQL-server-5.6.37-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.44-2.el7.centos.x86_64

file /usr/share/mysql/charsets/hebrew.xml from install of MySQL-server-5.6.37-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.44-2.el7.centos.x86_64

file /usr/share/mysql/charsets/hp8.xml from install of MySQL-server-5.6.37-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.44-2.el7.centos.x86_64

file /usr/share/mysql/charsets/keybcs2.xml from install of MySQL-server-5.6.37-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.44-2.el7.centos.x86_64

file /usr/share/mysql/charsets/koi8r.xml from install of MySQL-server-5.6.37-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.44-2.el7.centos.x86_64

file /usr/share/mysql/charsets/koi8u.xml from install of MySQL-server-5.6.37-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.44-2.el7.centos.x86_64

file /usr/share/mysql/charsets/latin1.xml from install of MySQL-server-5.6.37-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.44-2.el7.centos.x86_64

file /usr/share/mysql/charsets/latin2.xml from install of MySQL-server-5.6.37-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.44-2.el7.centos.x86_64

file /usr/share/mysql/charsets/latin5.xml from install of MySQL-server-5.6.37-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.44-2.el7.centos.x86_64

file /usr/share/mysql/charsets/latin7.xml from install of MySQL-server-5.6.37-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.44-2.el7.centos.x86_64

file /usr/share/mysql/charsets/macce.xml from install of MySQL-server-5.6.37-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.44-2.el7.centos.x86_64

file /usr/share/mysql/charsets/macroman.xml from install of MySQL-server-5.6.37-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.44-2.el7.centos.x86_64

file /usr/share/mysql/charsets/swe7.xml from install of MySQL-server-5.6.37-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.44-2.el7.centos.x86_64

解决办法:yum remove mysql-libs

Loaded plugins: fastestmirror

Resolving Dependencies

--> Running transaction check

---> Package mariadb-libs.x86_64 1:5.5.44-2.el7.centos will be erased

--> Processing Dependency: libmysqlclient.so.18()(64bit) for package: 2:postfix-2.10.1-6.el7.x86_64

--> Processing Dependency: libmysqlclient.so.18(libmysqlclient_18)(64bit) for package: 2:postfix-2.10.1-6.el7.x86_64

--> Running transaction check

---> Package postfix.x86_64 2:2.10.1-6.el7 will be erased

--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================================================================================================================================================================================

Package Arch Version Repository Size

Removing:

mariadb-libs x86_64 1:5.5.44-2.el7.centos @anaconda 4.4 M

Removing for dependencies:

postfix x86_64 2:2.10.1-6.el7 @anaconda 12 M

Transaction Summary

Remove 1 Package (+1 Dependent package)

Installed size: 17 M

Is this ok [y/N]: y

Downloading packages:

Running transaction check

Running transaction test

Transaction test succeeded

Running transaction

Warning: RPMDB altered outside of yum.

Erasing : 2:postfix-2.10.1-6.el7.x86_64 1/2

Erasing : 1:mariadb-libs-5.5.44-2.el7.centos.x86_64 2/2

Verifying : 1:mariadb-libs-5.5.44-2.el7.centos.x86_64 1/2

Verifying : 2:postfix-2.10.1-6.el7.x86_64 2/2

Removed:

mariadb-libs.x86_64 1:5.5.44-2.el7.centos

Dependency Removed:

postfix.x86_64 2:2.10.1-6.el7

Complete!

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
version_conflict_engine_exception是一种在Elasticsearch中可能遇到的错误。当多个用户或进程尝试并发地更新同一个文档时,就会引发这个异常。 Elasticsearch中的每个文档都有一个称为_version的字段,用于跟踪文档的版本。当用户或进程尝试更新一个文档时,Elasticsearch会检查当前版本和请求中指定的版本是否匹配。如果不匹配,就会引发version_conflict_engine_exception。 这个异常的出现通常是由于并发更新操作引起的。例如,当两个用户同时尝试更新同一个文档时,其中一个用户的更新操作会成功,而另一个用户的更新操作由于版本冲突而失败。 为了解决这个问题,可以采取以下几种方法: 1. 使用乐观并发控制:在更新文档之前,先获取当前版本,并将该版本传递给更新操作。如果版本匹配,更新就会成功。如果不匹配,则可以根据情况选择重试或者返回错误信息给用户。 2. 使用悲观并发控制:在更新文档时,使用锁定机制确保同一时间只有一个用户可以更新文档。其他用户必须等待直到锁被释放后才能进行更新操作。这种方法可以保证不会出现版本冲突,但会影响系统的并发性能。 3. 使用分布式锁:如果有多个Elasticsearch节点,可以使用分布式锁来控制并发更新操作。通过在更新操作之前申请分布式锁,可以确保同一时间只有一个节点可以更新文档。 总之,version_conflict_engine_exception是Elasticsearch在并发更新操作中可能出现的异常。为了解决这个问题,可以使用乐观或悲观并发控制,或者使用分布式锁来确保操作的一致性。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值