(1)下载xtrabackup
(2)rpm安装xtrabackup
rpm -ivh percona-xtrabackup-2.2.11-1.el6.x86_64.rpm
失败
原因:需要先安装 perl
(3)安装perl
yum -y install perl perl-devel libaio libaio-devel perl-Time-HiRes perl-DBD-MySQL
失败
原因:yum perl 默认是安装 mysql-libs-5.1.73-5.el6_6.x86_64 和当前已安装的 server 的 MySQL-server-5.6.25-1.el6.x86_64 有冲突,因此需要先安装shared版本。
(4)下载安装mysql-shared
wget http://cdn.mysql.com/archives/mysql-5.6/MySQL-shared-5.6.15-1.el6.x86_64.rpm
rpm -ih MySQL-shared-5.6.15-1.el6.x86_64.rpm
(5)下载安装 mysql-shared-compat
wget http://cdn.mysql.com/archives/mysql-5.6/MySQL-shared-compat-5.6.15-1.el6.x86_64.rpm
rpm -ih MySQL-shared-compat-5.6.15-1.el6.x86_64.rpm
(6)重新安装perl
yum -y install perl perl-devel libaio libaio-devel perl-Time-HiRes perl-DBD-MySQL
成功
(7)重新安装 xtrabackup
rpm -ivh percona-xtrabackup-2.2.11-1.el6.x86_64.rpm
成功
版权声明:本文为博主原创文章,未经博主允许不得转载。