安装percona-xtrabackup时冲突报错

环境:
centos+ mysql-community-5.7

[root@mysql-02 ~]# cat /etc/redhat-release
CentOS Linux release 7.3.1611 (Core)
[root@mysql-lh02 ~]# rpm -qa | grep -i mysql
perl-DBD-MySQL-4.023-5.el7.x86_64
mysql-community-client-5.7.19-1.el7.x86_64
mysql-community-libs-compat-5.7.19-1.el7.x86_64
mysql-community-common-5.7.19-1.el7.x86_64
mysql-community-server-5.7.19-1.el7.x86_64

安装percona-xtrabackup时冲突报错

# yum install http://www.percona.com/downloads/percona-release/redhat/0.1-4/percona-release-0.1-4.noarch.rpm
.....

			Running transaction check
			Running transaction test
			Transaction check error:
			  file /etc/my.cnf from install of Percona-Server-shared-56-5.6.37-rel82.2.el7.x86_64 conflicts with file from package mysql-community-server-5.7.19-1.el7.x86_64
	 
Error Summary
-------------

解决办法:

补充安装

包地址:https://repo.mysql.com/yum/mysql-5.7-community/el/7/x86_64/

# rpm -ivh mysql-community-libs-compat-5.7.19-1.el7.x86_64.rpm
Preparing...                          ################################# [100%]
Updating / installing...
   1:mysql-community-libs-compat-5.7.1################################# [100%]

然后再次安装percona-xtrabackup成功

# yum -y install percona-xtrabackup-24.x86_64

你可能感兴趣的:(centos,yum,linux,mysql)