mysql5.7 innodb数据库备份工具Xtrabackup的安装
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了mysql5.7 innodb数据库备份工具Xtrabackup的安装相关的知识,希望对你有一定的参考价值。
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
即可
本文出自 “运维之路” 博客,请务必保留此出处http://deepzx.blog.51cto.com/11385098/1962549
以上是关于mysql5.7 innodb数据库备份工具Xtrabackup的安装的主要内容,如果未能解决你的问题,请参考以下文章