Changes between Version 11 and Version 12 of GROUPReplicate3
- Timestamp:
- 07/18/22 00:42:42 (2 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GROUPReplicate3
v11 v12 41 41 On 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: 42 42 {{{ 43 43 mysql> SET GLOBAL group_replication_bootstrap_group=ON; 44 44 }}} 45 45 Then you can start replication for the initial group member: 46 46 {{{ 47 47 mysql> START GROUP_REPLICATION; 48 48 }}} 49 49 Following 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: 50 50 {{{ 51 51 mysql> SET GLOBAL group_replication_bootstrap_group=OFF; 52 52 }}} 53 53 The 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: 54 54 {{{ 55 55 mysql> SELECT * FROM performance_schema.replication_group_members; 56 56 }}} 57 57