CentOS7 install percona-xtrabackup

Summary:
  • percona-xtrabackup2.x version supports mysql5
  • percona-xtrabackup8.x version supports mysql8
  • mysql5.7.43, system centos7
1. yum installation
1. Install the Percona yum repository
yum install https://repo.percona.com/yum/percona-release-latest.noarch.rpm
2. Enable Percona Server 5.7 repository
percona-release setup ps57
3. If the output is as follows, the installation is successful.
[root@server ~]# percona-release setup ps57
* Disabling all Percona Repositories
* Enabling the Percona Server 5.7 repository
* Enabling the Percona XtraBackup 2.4 repository
<*> All done!
4. Use yum list to view the installed storage packages
[root@server ~]# yum list | grep percona
5. Install percona-xtrabackup-24
yum -y install percona-xtrabackup-24.x86_64
6. Summary of error resolution

Solutions to this problem:

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
  错误概要
  -------------------------------

Need to install mysql related libs-compat software

[root@server ~]# 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-communit
[root@server ~]# yum -y install mysql-community-libs-compat.x86_64
...
已安装:
  mysql-community-libs-compat.x86_64 0:5.7.30-1.el7

完毕!
[root@server ~]# 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

完毕!
7. Verify whether the installation is successful
# 查看是否安装
rpm -qa | grep -i 'mysql-community'
rpm -qa | grep -i 'percona-xtrabackup'

[root@server ~]# innobackupex --help

Guess you like

Origin blog.csdn.net/m0_50816276/article/details/131980068