mysql mysql5.7 innodb数据库备份工具Xtrabackup的安装

2014-7-17 foooy mysql

1、下载

wget http://www.percona.com/redir/downloads/XtraBackup/LATEST/binary/redhat/6/x86_64/percona-xtrabackup-2.2.3-4982.el6.x86_64.rpm


msyql5.7需要安装XtraBackup 2.4.1以上版本

官网地址 https://www.percona.com/downloads/XtraBackup/

2、安装

rpm -ivh percona-xtrabackup-2.2.3-4982.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



bak.rar

重新运行



rpm -ivh percona-xtrabackup-2.2.3-4982.el6.x86_64.rpm
即可


标签: mysql innodb Xtrabackup

评论(0) 浏览(3212)

Powered by emlog 鄂ICP备14000186号-1 sitemap