Debian Codegraph @

mysql-test/suite/group_replication/r/gr_primary_mode_group_operations_21.result

raw
1 include/group_replication.inc
2 Warnings:
3 Note #### Sending passwords in plain text without SSL/TLS is extremely insecure.
4 Note #### Storing MySQL user name or password information in the connection metadata repository is not secure and is therefore not recommended. Please consider using the USER and PASSWORD connection options for START REPLICA; see the 'START REPLICA Syntax' in the MySQL Manual for more information.
5 [connection server1]
6
7 # 1. On multi-primary mode any member can execute action to change to
8 # single primary mode
9 SELECT group_replication_switch_to_single_primary_mode("MEMBER1_UUID");
10 group_replication_switch_to_single_primary_mode("MEMBER1_UUID")
11 Mode switched to single-primary successfully.
12 [connection server2]
13
14 # 2. On single primary mode a secondary member can execute a change of
15 # primary member
16 SELECT group_replication_set_as_primary("MEMBER2_UUID");
17 group_replication_set_as_primary("MEMBER2_UUID")
18 Primary server switched to: MEMBER2_UUID
19 include/gr_assert_primary_member.inc
20
21 # 3. On single primary mode a primary member can execute a change of
22 # primary member
23 SELECT group_replication_set_as_primary("MEMBER1_UUID");
24 group_replication_set_as_primary("MEMBER1_UUID")
25 Primary server switched to: MEMBER1_UUID
26 [connection server1]
27 include/gr_assert_primary_member.inc
28
29 # 4. On single primary mode a secondary member can execute a change to
30 # multi primary mode
31 [connection server2]
32 SELECT group_replication_switch_to_multi_primary_mode();
33 group_replication_switch_to_multi_primary_mode()
34 Mode switched to multi-primary successfully.
35
36 # 5. Cleanup
37 include/group_replication_end.inc