假設(shè)三節(jié)點(diǎn)MGR某個(gè)節(jié)點(diǎn)異常,需要重新把這個(gè)節(jié)點(diǎn)加入到MGR集群中,具體操作過程如下:
貢獻(xiàn)者端執(zhí)行(192.168.1.11)
DROP USER 'donor_clone_user'@'192.168.1.12';
CREATE USER 'donor_clone_user'@'192.168.1.12' IDENTIFIED BY 'password';
GRANT BACKUP_ADMIN on *.* to 'donor_clone_user'@'192.168.1.12';
INSTALL PLUGIN clone SONAME 'mysql_clone.so';
接收者端執(zhí)行(192.168.1.12)
DROP USER 'recipient_clone_user'@'192.168.1.12';
CREATE USER 'recipient_clone_user'@'192.168.1.12' IDENTIFIED BY 'password';
GRANT CLONE_ADMIN on *.* to 'recipient_clone_user'@'192.168.1.12';
INSTALL PLUGIN clone SONAME 'mysql_clone.so';
SET GLOBAL clone_valid_donor_list = '192.168.1.11:3311';
exit
mysql -urecipient_clone_user -ppassword -h 192.168.1.12 -P3311
CLONE INSTANCE FROM 'donor_clone_user'@'192.168.1.11':3311 IDENTIFIED BY 'password';
exit
mysql -uroot -p
start group_replication;
select * from performance_schema.replication_group_members;
以上就是本文的全部?jī)?nèi)容,希望對(duì)大家的學(xué)習(xí)有所幫助,也希望大家多多支持腳本之家。
您可能感興趣的文章:- MySQL 8.0.15配置MGR單主多從的方法
- MySQL MGR 有哪些優(yōu)點(diǎn)
- mysql MGR 單主多主模式切換知識(shí)點(diǎn)詳解
- mysql 8.0.18 mgr 搭建及其切換功能
- 詳解MySQL 5.7 MGR單主確定主節(jié)點(diǎn)方法
- MySQL MGR搭建過程中常遇見的問題及解決辦法