使用rpm包安裝xtrabackup

復(fù)制代碼
## 安裝依賴包 yum -y install perl perl-devel libaio libaio-devel perl-Time-HiRes perl-DBD-MySQL rsync

## 安裝libev4包
rpm -ivh libev4-4.15-7.1.x86_64.rpm

## 安裝percona-xtrabackup
rpm -ivh percona-xtrabackup-24-2.4.4-1.el6.x86_64.rpm
復(fù)制代碼

 

為備份操作創(chuàng)建MySQL賬戶。

## xtrabackup備份創(chuàng)建備份用戶
CREATE USER 'backuper'@'localhost' IDENTIFIED BY 'backup@123';
GRANT SELECT, RELOAD, PROCESS, SHOW DATABASES, SUPER, LOCK TABLES, REPLICATION CLIENT, SHOW VIEW, EVENT ON *.* TO 'backuper'@'localhost';
FLUSH PRIVILEGES;