Changes between Version 13 and Version 14 of GROUPReplicate3


Ignore:
Timestamp:
07/25/22 15:34:42 (2 years ago)
Author:
krit
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GROUPReplicate3

    v13 v14  
    9090== Multiple hosts on Docker Container ==
    9191
    92 At nodedb1 192.168.81.36 file start.sh
     92At nodedb1 192.168.81.36 file start.sh where the network share with host ( --net=host )
    9393{{{
    9494node=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 \
    9795docker run -d --name=nodedb$node --hostname=nodedb$node --net=host \
    9896    -v $PWD/mysql-8.0.11/d$node:/var/lib/mysql \
     
    119117    --loose-group-replication-enforce-update-everywhere-checks='ON'
    120118}}}
     119
     120
     121
     122On nodedb2 192.168.81.11, use mysql cmd to do
     123{{{
     124mysql>  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}}}