mysql5.7 innodb数据库备份工具Xtrabackup的安装
wget mhttps://www.percona.com/downloads/XtraBackup/Percona-XtraBackup-2.4.7/binary/redhat/6/x86_64/percona-xtrabackup-24-2.4.7-1.el6.x86_64.rpm
Mysql5.7需要安装XtraBackup 2.4.1以上版本
官网地址 https://www.percona.com/downloads/XtraBackup/
2、安装
rpm -ivh percona-xtrabackup-24-2.4.7-1.el6.x86_64.rpm
如果报下面错误的话
warning: percona-xtrabackup-2.2.3-4982.el6.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID cd2efd2a: NOKEY
error: Failed dependencies:
libaio.so.1()(64bit) is needed by percona-xtrabackup-2.2.3-4982.el6.x86_64
libaio.so.1(LIBAIO_0.1)(64bit) is needed by percona-xtrabackup-2.2.3-4982.el6.x86_64
libaio.so.1(LIBAIO_0.4)(64bit) is needed by percona-xtrabackup-2.2.3-4982.el6.x86_64
perl(DBD::mysql) is needed by percona-xtrabackup-2.2.3-4982.el6.x86_64
perl(Time::HiRes) is needed by percona-xtrabackup-2.2.3-4982.el6.x86_64
安装以下依赖包:
yum -y install perl perl-devel libaio libaio-devel perl-Time-HiRes perl-DBD-MySQL
如果报错
error: Failed dependencies:
libev.so.4()(64bit) is needed by percona-xtrabackup-24-2.4.3-1.el6.x86_64
libnuma.so.1()(64bit) is needed by percona-xtrabackup-24-2.4.3-1.el6.x86_64
wget http://mirror.centos.org/centos/6/os/x86_64/Packages/numactl-2.0.9-2.el6.x86_64.rpm
rpm -ivh numactl-2.0.9-2.el6.x86_64.rpm
http://rpmfind.net/linux/rpm2html/search.php?query=libev.so.4()(64bit)
wget ftp://rpmfind.net/linux/dag/redhat/el6/en/x86_64/dag/RPMS/libev-4.15-1.el6.rf.x86_64.rpm
rpm -ivh libev-4.15-1.el6.rf.x86_64.rpm
重新运行
rpm -ivh percona-xtrabackup-24-2.4.7-1.el6.x86_64.rpm
即可
本文转自去轻狂书生51CTO博客,原文链接:http://blog.51cto.com/8999a/1962549 ,如需转载请自行联系原作者