报错信息:
... Transaction check error: file /etc/my.cnf from install of Percona-Server-shared-56-5.6.48-rel88.0.1.el7.x86_64 conflicts with file from package mysql-community-server-5.7.30-1.el7.x86_64 错误概要 -------------
安装过程:
[root@test2 ~]# yum -y install https://repo.percona.com/yum/percona-release-latest.noarch.rpm //安装percona Yum源 ... 已安装: percona-release.noarch 0:1.0-21 完毕! [root@test2 ~]# yum list | grep percona //搜索percona各软件包版本 ... percona-release.noarch 1.0-21 installed percona-xtrabackup-24.x86_64 2.4.5-1.el7 installed Percona-Server-55-debuginfo.x86_64 5.5.62-rel38.14.el7 percona-release-x86_64 Percona-Server-56-debuginfo.x86_64 5.6.48-rel88.0.1.el7 percona-release-x86_64 Percona-Server-57-debuginfo.x86_64 5.7.30-33.1.el7 percona-release-x86_64 Percona-Server-80-info.x86_64 8.0-1.el7 percona-release-x86_64 Percona-Server-MongoDB.x86_64 3.0.15-1.10.el7 percona-release-x86_64 Percona-Server-MongoDB-32.x86_64 3.2.22-3.13.el7 percona-release-x86_64 3.2.22-3.13.el7 percona-release-x86_64 Percona-Server-MongoDB-32-mongos.x86_64 3.2.22-3.13.el7 percona-release-x86_64 Percona-Server-MongoDB-32-server.x86_64 3.2.22-3.13.el7 percona-release-x86_64 Percona-Server-MongoDB-32-shell.x86_64 3.2.22-3.13.el7 percona-release-x86_64 Percona-Server-MongoDB-32-tools.x86_64 3.2.22-3.13.el7 percona-release-x86_64 Percona-Server-MongoDB-34.x86_64 3.4.24-3.0.el7 percona-release-x86_64 3.4.24-3.0.el7 percona-release-x86_64 Percona-Server-MongoDB-34-mongos.x86_64 3.4.24-3.0.el7 percona-release-x86_64 ... [root@test2 ~]# yum -y install percona-xtrabackup-24.x86_64 //安装percona-xtrabackup-24 ... 事务概要 ============================================================================================================================================ 安装 1 软件包 (+2 依赖软件包) 总下载量:8.3 M 安装大小:8.5 M Downloading packages: (1/3): perl-DBD-MySQL-4.023-6.el7.x86_64.rpm | 140 kB 00:00:00 (2/3): percona-xtrabackup-24-2.4.20-1.el7.x86_64.rpm | 7.6 MB 00:00:12 (3/3): Percona-Server-shared-56-5.6.48-rel88.0.1.el7.x86_64.rpm | 619 kB 00:00:22 -------------------------------------------------------------------------------------------------------------------------------------------- 总计 380 kB/s | 8.3 MB 00:00:22 Running transaction check Running transaction test Transaction check error: file /etc/my.cnf from install of Percona-Server-shared-56-5.6.48-rel88.0.1.el7.x86_64 conflicts with file from package mysql-community-server-5.7.30-1.el7.x86_64 错误概要 -------------
解决方法:
解决这个问题,需要安装mysql相关的libs-compat软件。
[root@test2 ~]# yum list | grep mysql | grep libs-compat Repository base is listed more than once in the configuration Repository updates is listed more than once in the configuration Repository extras is listed more than once in the configuration mysql-community-libs-compat.i686 5.7.30-1.el7 mysql57-community mysql-community-libs-compat.x86_64 5.7.30-1.el7 mysql57-community [root@test2 ~]# yum -y install mysql-community-libs-compat.x86_64 ... 已安装: mysql-community-libs-compat.x86_64 0:5.7.30-1.el7 完毕! [root@test2 ~]# yum -y install percona-xtrabackup-24.x86_64 ... 已安装: percona-xtrabackup-24.x86_64 0:2.4.20-1.el7 作为依赖被安装: perl-DBD-MySQL.x86_64 0:4.023-6.el7 完毕!
报错解决,可以看到现在已经成功安装了percona-xtrabackup-24。