| 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 |
[connection server1] |
| 7 |
SET GLOBAL group_replication_group_name="00000000-1111-2222-3333-444444444444"; |
| 8 |
SET GLOBAL group_replication_ip_allowlist=NULL; |
| 9 |
ERROR 42000: Variable 'group_replication_ip_allowlist' can't be set to the value of 'NULL' |
| 10 |
SET GLOBAL group_replication_ip_allowlist="192.256.1.20"; |
| 11 |
START GROUP_REPLICATION; |
| 12 |
ERROR HY000: The START GROUP_REPLICATION command failed as there was an error when initializing the group communication layer. |
| 13 |
SET GLOBAL group_replication_ip_allowlist="300.168.1.20"; |
| 14 |
START GROUP_REPLICATION; |
| 15 |
ERROR HY000: The START GROUP_REPLICATION command failed as there was an error when initializing the group communication layer. |
| 16 |
SET GLOBAL group_replication_ip_allowlist="192.168.1.0/33"; |
| 17 |
START GROUP_REPLICATION; |
| 18 |
ERROR HY000: The START GROUP_REPLICATION command failed as there was an error when initializing the group communication layer. |
| 19 |
SET GLOBAL group_replication_ip_allowlist="192.168.266.0/24"; |
| 20 |
START GROUP_REPLICATION; |
| 21 |
ERROR HY000: The START GROUP_REPLICATION command failed as there was an error when initializing the group communication layer. |
| 22 |
SET GLOBAL group_replication_ip_allowlist="8.9.10.0/20,192.168.1.1,192.168.2.0/44"; |
| 23 |
START GROUP_REPLICATION; |
| 24 |
ERROR HY000: The START GROUP_REPLICATION command failed as there was an error when initializing the group communication layer. |
| 25 |
SET GLOBAL group_replication_ip_allowlist="8.9.10.0/20,192.168.1.1,AUTOMATIC"; |
| 26 |
ERROR HY000: The group_replication_ip_allowlist is invalid. Make sure that when specifying "AUTOMATIC" the list contains no other values. |
| 27 |
SET GLOBAL group_replication_ip_allowlist="192.168.1.1"; |
| 28 |
include/start_and_bootstrap_group_replication.inc |
| 29 |
include/assert.inc [Assert value changed to 192.168.1.1] |
| 30 |
include/stop_group_replication.inc |
| 31 |
include/assert_grep.inc [ip_allowlist was successfully logged to the error log] |
| 32 |
SET GLOBAL group_replication_ip_allowlist="192.168.1.0/24"; |
| 33 |
include/start_and_bootstrap_group_replication.inc |
| 34 |
include/assert.inc [Assert value changed to 192.168.1.0/24] |
| 35 |
include/stop_group_replication.inc |
| 36 |
include/assert_grep.inc [ip_allowlist was successfully logged to the error log] |
| 37 |
SET GLOBAL group_replication_ip_allowlist="8.9.10.0/20"; |
| 38 |
include/start_and_bootstrap_group_replication.inc |
| 39 |
include/assert.inc [Assert value changed to 8.9.10.0/20] |
| 40 |
include/stop_group_replication.inc |
| 41 |
include/assert_grep.inc [ip_allowlist was successfully logged to the error log] |
| 42 |
SET GLOBAL group_replication_ip_allowlist="fe80::f6dd:5a39:661b:b00b/64,8.9.10.0/20,192.168.1.1,192.168.2.0/24"; |
| 43 |
include/start_and_bootstrap_group_replication.inc |
| 44 |
include/assert.inc [Assert value changed to fe80::f6dd:5a39:661b:b00b/64,8.9.10.0/20,192.168.1.1,192.168.2.0/24] |
| 45 |
include/stop_group_replication.inc |
| 46 |
include/assert_grep.inc [ip_allowlist was successfully logged to the error log] |
| 47 |
SET GLOBAL group_replication_ip_allowlist="CORRECT_HOSTNAME"; |
| 48 |
include/start_and_bootstrap_group_replication.inc |
| 49 |
include/assert.inc [Assert value with hostname is not empty] |
| 50 |
include/stop_group_replication.inc |
| 51 |
SET GLOBAL group_replication_ip_allowlist=""; |
| 52 |
include/start_and_bootstrap_group_replication.inc |
| 53 |
include/assert.inc [Assert value changed to ""] |
| 54 |
include/stop_group_replication.inc |
| 55 |
include/assert_grep.inc [ip_allowlist was successfully logged to the error log] |
| 56 |
SET GLOBAL group_replication_ip_allowlist=DEFAULT; |
| 57 |
ERROR 42000: Variable 'group_replication_ip_allowlist' can't be set to the value of 'DEFAULT' |
| 58 |
SET GLOBAL group_replication_ip_allowlist=AUTOMATIC; |
| 59 |
include/start_and_bootstrap_group_replication.inc |
| 60 |
include/assert.inc [Assert value changed to "AUTOMATIC"] |
| 61 |
SET GLOBAL group_replication_ip_allowlist="192.168.1.1"; |
| 62 |
include/assert.inc [Assert value changed to "192.168.1.1"] |
| 63 |
SET GLOBAL group_replication_ip_allowlist="192.256.1.20"; |
| 64 |
ERROR HY000: The group_replication_ip_allowlist is invalid. Make sure that when specifying "AUTOMATIC" the list contains no other values. |
| 65 |
include/assert.inc [Assert value has not changed to "192.256.1.20"] |
| 66 |
include/stop_group_replication.inc |
| 67 |
[connection server1] |
| 68 |
SET GLOBAL group_replication_ip_allowlist=""; |
| 69 |
include/start_and_bootstrap_group_replication.inc |
| 70 |
[connection server2] |
| 71 |
include/start_group_replication.inc |
| 72 |
CREATE TABLE t1 (c1 INT NOT NULL PRIMARY KEY) ENGINE=InnoDB; |
| 73 |
INSERT INTO t1 VALUES (1); |
| 74 |
[connection server1] |
| 75 |
include/rpl_sync.inc |
| 76 |
include/diff_tables.inc [server1:test.t1,server2:test.t1] |
| 77 |
DROP TABLE t1; |
| 78 |
include/rpl_sync.inc |
| 79 |
[connection server1] |
| 80 |
include/stop_group_replication.inc |
| 81 |
SET GLOBAL group_replication_ip_allowlist= AUTOMATIC; |
| 82 |
include/start_group_replication.inc |
| 83 |
[connection server2] |
| 84 |
include/stop_group_replication.inc |
| 85 |
SET GLOBAL group_replication_ip_allowlist= AUTOMATIC; |
| 86 |
include/start_group_replication.inc |
| 87 |
include/group_replication_end.inc |