libev.so.4()(64bit) is needed by percona-xtrabackup-24-2.4.9-1.el7.x86_64
perl(DBD::mysql) is needed by percona-xtrabackup-24-2.4.9-1.el7.x86_64
perl(Digest::MD5) is needed by percona-xtrabackup-24-2.4.9-1.el7.x86_64rsync is needed by percona-xtrabackup-24-2.4.9-1.el7.x86_64
libev.so.4()的解决到下面这里下载操作系统对应的版本,本例下载的是libev-4.15-3.el7.x86_64.rpm
https://mirrors.aliyun.com/epel/7/x86_64/Packages/l/libev-4.15-3.el7.x86_64.rpm perl(DBD::mysql)和perl(Digest::MD5),需要安装mysql-community-libs-compat-5.7.17-1.el7.x86_64.rpm,在安装包里找到即可 在master机器操作
1、在数据库创建备份账号
CREATE USER xtrabk@'localhost' IDENTIFIED BY 'onlyxtrabk!@#$';
GRANT RELOAD, LOCK TABLES, REPLICATION CLIENT,Process ON *.* TO xtrabk@'localhost';
binlog_pos = filename 'bin.000131', position '615481029', GTID of the last change 'c9c73c70-c089-11e7-8544-00163e0ad76e:1-107089934'
6、查看slave已执行的gtid是否为空,如果不为空,需要执行reset MASTER进行清理,否则无法设置gtid。
mysql> show master status \G;
*************************** 1. row ***************************