| 1 |
include/group_replication.inc [rpl_server_count=3] |
| 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. Start GR on server1 & 2 |
| 8 |
[connection server1] |
| 9 |
include/start_and_bootstrap_group_replication.inc |
| 10 |
[connection server2] |
| 11 |
include/start_group_replication.inc |
| 12 |
|
| 13 |
# 2. Add some data to server1 & 3 |
| 14 |
[connection server1] |
| 15 |
CREATE TABLE test.t1 (c1 INT NOT NULL PRIMARY KEY) ENGINE=InnoDB; |
| 16 |
INSERT INTO test.t1 VALUES (1); |
| 17 |
[connection server3] |
| 18 |
CREATE TABLE test.t2 (c1 INT NOT NULL PRIMARY KEY) ENGINE=InnoDB; |
| 19 |
INSERT INTO test.t2 VALUES (1); |
| 20 |
|
| 21 |
# 3. Create and start new channel ch3_1: server1(slave), server3(master) |
| 22 |
[connection server1] |
| 23 |
CHANGE REPLICATION SOURCE TO SOURCE_HOST='localhost', SOURCE_USER='root', SOURCE_PORT=SERVER_3_PORT for channel 'ch3_1'; |
| 24 |
Warnings: |
| 25 |
Note 1759 Sending passwords in plain text without SSL/TLS is extremely insecure. |
| 26 |
Note 1760 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. |
| 27 |
include/start_slave.inc [FOR CHANNEL 'ch3_1'] |
| 28 |
|
| 29 |
# 4. Verify channel ch3_1 IO and SQL THREADS are ON |
| 30 |
include/assert.inc [Verify channel ch3_1 IO_THREAD is ON] |
| 31 |
include/assert.inc [Verify channel ch3_1 SQL_THREAD is ON] |
| 32 |
|
| 33 |
# 5. Verify data is replicated to server1 & 2 |
| 34 |
[connection server3] |
| 35 |
include/sync_slave_sql_with_master.inc [FOR CHANNEL 'ch3_1'] |
| 36 |
include/rpl_sync.inc |
| 37 |
[connection server2] |
| 38 |
include/assert.inc [Verify two tables (t1 & t2) are present in test database] |
| 39 |
include/assert.inc [Verify test.t2 is synced] |
| 40 |
[connection server1] |
| 41 |
include/assert.inc [Verify two tables (t1 & t2) are present in test database] |
| 42 |
include/assert.inc [Verify test.t2 is synced] |
| 43 |
|
| 44 |
# 6. Clean Up |
| 45 |
[connection server1] |
| 46 |
STOP SLAVE FOR CHANNEL 'ch3_1'; |
| 47 |
Warnings: |
| 48 |
Warning 1287 'STOP SLAVE' is deprecated and will be removed in a future release. Please use STOP REPLICA instead |
| 49 |
RESET SLAVE ALL FOR CHANNEL 'ch3_1'; |
| 50 |
Warnings: |
| 51 |
Warning 1287 'RESET SLAVE' is deprecated and will be removed in a future release. Please use RESET REPLICA instead |
| 52 |
DROP TABLE test.t1; |
| 53 |
DROP TABLE test.t2; |
| 54 |
[connection server3] |
| 55 |
DROP TABLE test.t2; |
| 56 |
include/group_replication_end.inc |