| 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 |
include/assert.inc [group_replication_enforce_update_everywhere_checks is ON] |
| 7 |
include/assert.inc [The single primary mode should be 1 here.] |
| 8 |
include/start_and_bootstrap_group_replication.inc |
| 9 |
[connection server2] |
| 10 |
include/start_group_replication.inc |
| 11 |
|
| 12 |
# 1. Change to multi primary mode |
| 13 |
[connection server1] |
| 14 |
SELECT group_replication_switch_to_multi_primary_mode(); |
| 15 |
group_replication_switch_to_multi_primary_mode() |
| 16 |
Mode switched to multi-primary successfully. |
| 17 |
|
| 18 |
# 2. Check all variables |
| 19 |
[connection server1] |
| 20 |
include/assert.inc [group_replication_enforce_update_everywhere_checks is ON] |
| 21 |
include/assert.inc [The single primary mode should be 0 here.] |
| 22 |
include/assert.inc [The super_read_only mode should be 0 here.] |
| 23 |
[connection server2] |
| 24 |
include/assert.inc [group_replication_enforce_update_everywhere_checks is ON] |
| 25 |
include/assert.inc [The single primary mode should be 0 here.] |
| 26 |
|
| 27 |
# 3. Restart Group Replication on server 2. Check all goes as planned |
| 28 |
[connection server2] |
| 29 |
include/stop_group_replication.inc |
| 30 |
include/start_group_replication.inc |
| 31 |
include/assert.inc [group_replication_enforce_update_everywhere_checks is ON] |
| 32 |
include/assert.inc [The single primary mode should be 0 here.] |
| 33 |
|
| 34 |
# 4. Restart server 1. Don't pass the Primary mode settings. Check all |
| 35 |
# goes planned. |
| 36 |
[connection server1] |
| 37 |
# restart:--group_replication_local_address=GROUP_REPLICATION_LOCAL_ADDRESS --group_replication_group_seeds=GROUP_REPLICATION_GROUP_SEEDS --group-replication-group-name=GROUP_REPLICATION_GROUP_NAME |
| 38 |
include/rpl_reconnect.inc |
| 39 |
include/assert.inc [group_replication_enforce_update_everywhere_checks is ON] |
| 40 |
include/assert.inc [The single primary mode should be 0 here.] |
| 41 |
include/start_group_replication.inc |
| 42 |
include/assert.inc [The super_read_only mode should be 1 here.] |
| 43 |
include/group_replication_end.inc |