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 |
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 |
重新运行
代码如下 | 复制代码 |
rpm -ivh percona-xtrabackup-2.2.3-4982.el6.x86_64.rpm |
即可
时间: 2024-11-01 19:09:42