二进制安装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*