Changes between Version 13 and Version 14 of GROUPReplicate3
- Timestamp:
- 07/25/22 15:34:42 (2 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GROUPReplicate3
v13 v14 90 90 == Multiple hosts on Docker Container == 91 91 92 At nodedb1 192.168.81.36 file start.sh 92 At nodedb1 192.168.81.36 file start.sh where the network share with host ( --net=host ) 93 93 {{{ 94 94 node=1 95 #docker run -it --name=nodedb1 --net=group1 --hostname=nodedb1 -p 3306:3306 \96 #docker run -d --name=nodedb$node --hostname=nodedb$node --network host -p 3306:3306 -p 33061:33061 \97 95 docker run -d --name=nodedb$node --hostname=nodedb$node --net=host \ 98 96 -v $PWD/mysql-8.0.11/d$node:/var/lib/mysql \ … … 119 117 --loose-group-replication-enforce-update-everywhere-checks='ON' 120 118 }}} 119 120 121 122 On nodedb2 192.168.81.11, use mysql cmd to do 123 {{{ 124 mysql> SET @@GLOBAL.group_replication_group_name='aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee'; 125 SET @@GLOBAL.group_replication_local_address="192.168.81.11:33061"; 126 SET @@GLOBAL.group_replication_group_seeds="192.168.81.36:33061,192.168.81.11:33061,192.168.81.10:33061"; 127 SET @@GLOBAL.group_replication_bootstrap_group=0; 128 SET @@global.group_replication_recovery_retry_count=5; 129 change master to master_user='repl' for channel 'group_replication_recovery'; 130 START GROUP_REPLICATION; 131 SELECT * FROM performance_schema.replication_group_members; 132 }}}