Changes between Version 11 and Version 12 of GROUPReplicate3


Ignore:
Timestamp:
07/18/22 00:42:42 (2 years ago)
Author:
krit
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GROUPReplicate3

    v11 v12  
    4141On nodedb1, we need to set the group_replication_bootstrap_group variable tells a member that it shouldn’t expect to receive information from peers and should instead establish a new group and elect itself the primary member. You can turn this variable on with the following command:
    4242{{{
    43     SET GLOBAL group_replication_bootstrap_group=ON;
     43mysql> SET GLOBAL group_replication_bootstrap_group=ON;
    4444}}}
    4545Then you can start replication for the initial group member:
    4646{{{
    47     START GROUP_REPLICATION;
     47mysql> START GROUP_REPLICATION;
    4848}}}
    4949Following that, you can set the group_replication_bootstrap_group variable back to OFF, since the only situation where this is appropriate is when there are no existing group members:
    5050{{{
    51     SET GLOBAL group_replication_bootstrap_group=OFF;
     51mysql> SET GLOBAL group_replication_bootstrap_group=OFF;
    5252}}}
    5353The group will be started with this server as the only member. Verify this by checking the entries within the replication_group_members table in the performance_schema database:
    5454{{{
    55     SELECT * FROM performance_schema.replication_group_members;
     55mysql> SELECT * FROM performance_schema.replication_group_members;
    5656}}}
    5757