二進位包安裝(推薦安裝方式,不用安裝依賴包,非常方便): 1、下載安二進位包: wget https://www.percona.com/downloads/XtraBackup/Percona-XtraBackup-2.4.7/binary/tarball/percona-xtrabackup-2 ...
二進位包安裝(推薦安裝方式,不用安裝依賴包,非常方便): 1、下載安二進位包: wget https://www.percona.com/downloads/XtraBackup/Percona-XtraBackup-2.4.7/binary/tarball/percona-xtrabackup-2.4.7-Linux-x86_64.tar.gz 2、解壓並創建軟連接: # tar zxvf percona-xtrabackup-2.4.7-Linux-x86_64.tar.gz # mv percona-xtrabackup-2.4.7-Linux-x86_64 /usr/local/xtrabackup # ln -s /usr/local/xtrabackup/bin/* /usr/bin/ 3、查看版本: # xtrabackup --version xtrabackup version 2.4.7 based on MySQL server 5.7.13 Linux (x86_64) (revision id: 6f7a799) 源碼安裝: 1、安裝依賴包: yum install cmake gcc gcc-c++ libaio libaio-devel automake autoconf bison libtool ncurses-devel libgcrypt-devel libev-devel libcurl-devel vim-common libev-devel 包yum安裝不上時,可手動RPM包安裝 rpm -ivh glibc-2.12-1.166.el6.x86_64.rpm rpm -ivh libev-4.03-3.el6.x86_64.rpm libev-devel-4.03-3.el6.x86_64.rpm 2、解壓源碼包: tar -zxvf percona-xtrabackup-2.3.3.tar.gz cd percona-xtrabackup-2.3.3 3、編譯安裝: cmake -DBUILD_CONFIG=xtrabackup_release -DWITH_MAN_PAGES=OFF && make -j4 make install 4、添加到基本命令: cp /usr/local/xtrabackup/bin/innobackupex /usr/bin cp /usr/local/xtrabackup/bin/xtrabackup /usr/bin yum源安裝: 1、安裝Percona的庫: yum install http://www.percona.com/downloads/percona-release/redhat/0.1-3/percona-release-0.1-3.noarch.rpm 2、測試Percona庫: yum list|grep percona 3、安裝包: yum install percona-xtrabackup