CentOS7安装Percona Server

摘要:

  • percona-xtrabackup2.x版本支持mysql5
  • percona-xtrabackup8.x版本支持mysql8
  • mysql5.7.43,系统centos7

一、yum安装

1.安装Percona yum存储库
yum install https://repo.percona.com/yum/percona-release-latest.noarch.rpm
2.启用Percona Server 5.7存储库
percona-release setup ps57
3.输出如下则安装成功
[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.yum list查看安装的储存包
[root@server ~]# yum list | grep percona
5.安装percona-xtrabackup-24
yum -y install percona-xtrabackup-24.x86_64
6.错误概要解决

遇到这种问题解决方法:

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@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.验证是否安装成功
# 查看是否安装
rpm -qa | grep -i 'mysql-community'
rpm -qa | grep -i 'percona-xtrabackup'

[root@server ~]# innobackupex --help

你可能感兴趣的:(数据库,运维,linux,mysql)