centOS6.4下Percona-XtraBackup的安装

去官网下载新版的xtrabackup

wget https://www.percona.com/downloads/XtraBackup/Percona-XtraBackup-2.3.2/binary/redhat/6/x86_64/Percona-XtraBackup-2.3.2-r306a2e0-el6-x86_64-bundle.tar

拆包

tar xvf Percona-XtraBackup-2.3.2-r306a2e0-el6-x86_64-bundle.tar

[root@miles xtraBackup]# ll
total 53620
-rw-rw-r--. 1 root root  5664452 Oct 17 02:50 percona-xtrabackup-2.3.2-1.el6.x86_64.rpm
-rw-r--r--. 1 root root 27453440 Nov 18  2015 Percona-XtraBackup-2.3.2-r306a2e0-el6-x86_64-bundle.tar
-rw-rw-r--. 1 root root 20807976 Oct 17 02:50 percona-xtrabackup-debuginfo-2.3.2-1.el6.x86_64.rpm
-rw-rw-r--. 1 root root   971264 Oct 17 02:50 percona-xtrabackup-test-2.3.2-1.el6.x86_64.rpm

安装

[root@miles xtraBackup]# rpm -ivh percona-xtrabackup-2.3.2-1.el6.x86_64.rpm 
warning: percona-xtrabackup-2.3.2-1.el6.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID cd2efd2a: NOKEY
error: Failed dependencies:
        libev.so.4()(64bit) is needed by percona-xtrabackup-2.3.2-1.el6.x86_64
        perl(DBD::mysql) is needed by percona-xtrabackup-2.3.2-1.el6.x86_64
安装报错,缺少依赖包
安装perl
[root@miles xtraBackup]# yum install -y perl-DBD-MySQL
安装libev库
[root@miles xtraBackup]# wget http://dist.schmorp.de/libev/libev-4.20.tar.gz
[root@miles xtraBackup]# tar zxvf libev-4.20.tar.gz 
[root@miles xtraBackup]# cd libev-4.20
[root@miles libev-4.20]# ./configure
[root@miles libev-4.20]# make;make install
修改环境变量
[root@miles xtraBackup]# vi /etc/profile
export LIBDIR=/usr/local/lib
export LD_LIBRARY_PATH=/usr/local/lib:/usr/local/mysql/lib
export LD_RUN_PATH=/usr/local/lib
[root@miles xtraBackup]# source /etc/profile

[root@miles xtraBackup]# rpm -ivh percona-xtrabackup-*
warning: percona-xtrabackup-2.3.2-1.el6.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID cd2efd2a: NOKEY
Preparing...                ########################################### [100%]
   1:percona-xtrabackup     ########################################### [ 33%]
   2:percona-xtrabackup-test########################################### [ 67%]
   3:percona-xtrabackup-debu########################################### [100%]
上一篇:mysql隔离级别


下一篇:mysql帮助的使用