Percona XtraBackup 8.0不支持对在MySQL 8.0之前的版本,Percona Server for MySQL或 Percona XtraDB Cluster中创建的数据库进行备份。由于MySQL 8.0在数据字典,重做日志和撤消日志中引入的更改与以前的版本不兼容,因此Percona XtraBackup 8.0 目前不可能也支持8.0之前的版本。
因为我准备备份生产环境的数据,但是生产环境不能连外网,所以只能先下载rpm包或者源码包进行安装,编译安装太慢了,所以就选择rpm包安装,安装的时候,可能也需要解决依赖的问题,缺什么就下载什么rpm包,这样最好。
授人以鱼不如授人以渔,以下是我的安装步骤,另外,结束时附上我是如何找到这些依赖rpm包。
因为生产环境是mysql5.6的,所以这里演示的是centos6安装percona-xtrabackup-24-2.4.4版本。
CentOS7的percona-xtrabackup2.4.12版本
wget https://www.percona.com/downloads/XtraBackup/Percona-XtraBackup-2.4.12/binary/redhat/7/x86_64/percona-xtrabackup-24-2.4.12-1.el7.x86_64.rpm
先检查这些是否安装依赖包是否都安装好了,没有被安装的,请安装
rpm -q libaio-devel libgpg-error-devel libgcrypt-devel autoconf automake libidn-devel libcurl-devel
我提示的就是一下几个没有安装,根据提示没有安装的进行下载安装。
依赖包下载:(如果你在windows的浏览器上下载,就直接打开下面的链接地址,下载完成后,复制到不能上外网的linux机器上去)
wget http://mirror.centos.org/centos/6/os/x86_64/Packages/libaio-devel-0.3.107-10.el6.x86_64.rpm
wget http://mirror.centos.org/centos/6/os/x86_64/Packages/libgpg-error-devel-1.7-4.el6.x86_64.rpm
wget http://mirror.centos.org/centos/6/os/x86_64/Packages/libgcrypt-devel-1.4.5-12.el6_8.x86_64.rpm
wget http://mirror.centos.org/centos/6/os/x86_64/Packages/libidn-devel-1.18-2.el6.x86_64.rpm
wget http://mirror.centos.org/centos/6/os/x86_64/Packages/libcurl-devel-7.19.7-53.el6_9.x86_64.rpm
wget http://download-ib01.fedoraproject.org/pub/epel/6/x86_64/Packages/l/libev-4.03-3.el6.x86_64.rpm
wget https://www.percona.com/downloads/XtraBackup/Percona-XtraBackup-2.4.4/binary/redhat/6/x86_64/percona-xtrabackup-24-2.4.4-1.el6.x86_64.rpm
注意可能有顺序之分
安装依赖:
rpm -ivh libaio-devel-0.3.107-10.el6.x86_64.rpm
rpm -ivh libgpg-error-devel-1.7-4.el6.x86_64.rpm
rpm -ivh libgcrypt-devel-1.4.5-12.el6_8.x86_64.rpm
rpm -ivh libidn-devel-1.18-2.el6.x86_64.rpm
rpm -ivh libcurl-devel-7.19.7-53.el6_9.x86_64.rpm
rpm -ivh libev-4.03-3.el6.x86_64.rpm
下载percona-xtrabackup
CentOS6的percona-xtrabackup8.0.7版本
wget https://www.percona.com/downloads/Percona-XtraBackup-LATEST/Percona-XtraBackup-8.0-7/binary/redhat/6/x86_64/percona-xtrabackup-80-8.0.7-1.el6.x86_64.rpm
CentOS6的percona-xtrabackup2.4.4版本
wget https://www.percona.com/downloads/XtraBackup/Percona-XtraBackup-2.4.4/binary/redhat/6/x86_64/percona-xtrabackup-24-2.4.4-1.el6.x86_64.rpm
CentOS7的percona-xtrabackup2.4.4版本
wget https://www.percona.com/downloads/XtraBackup/Percona-XtraBackup-2.4.4/binary/redhat/7/x86_64/percona-xtrabackup-24-2.4.4-1.el7.x86_64.rpm
安装percan-xtrabackup:
rpm -ivh percona-xtrabackup-24-2.4.4-1.el6.x86_64.rpm
检查是否安装成功
在命令行后,输入innob,按tab键,如果可以自动补全innobackupex,即说明安装成功。
附:
比如我缺少libaio-devel这个包,我就直接百度“libaio-devel 下载”,找到有一个“Libaio-devel Download (RPM)”的连接,点击进入,
找到对应的系统有,这里有CentOS6,7,8等等,选择对应的操作系统架构“CentOS i386”or “CentOS x86_64”,
我是CentOS x86_64的所以选择“libaio-devel-0.3.107-10.el6.x86_64.rpm”,进入网页后,找到Download>>Binary Package,点击后面的连接就可以下载了。
原文出处:https://www.cnblogs.com/jimmyTang-J/p/11812461.html
来源:oschina
链接:https://my.oschina.net/u/4382053/blog/3247898