二進制安裝xtrabackup-2.3.9
下載下傳資料包
wget
https://www.percona.com/downloads/Percona-XtraBackup-2.3/Percona-XtraBackup-2.3.9/binary/tarball/percona-xtrabackup-2.3.9-Linux-x86_64.tar.gz解壓
tar -zxvf percona-xtrabackup-2.3.9-Linux-x86_64.tar.gz
mv percona-xtrabackup-2.3.9-Linux-x86_64 xtrabackup
把解壓包複制到 /usr/local/xtrabackup
cp -r xtrabackup /usr/local/xtrabackup
設定環境變量
echo "export PATH=$PATH:/usr/local/xtrabackup/bin" > /etc/profile.d/xtrabackup.sh
source /etc/profile.d/xtrabackup.sh
安裝完如果有報錯:xtrabackup: error while loading shared libraries: libaio.so.1: cannot open shared object file: No such file or directory
需要安裝yum -y install libaio*