| 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 |
############################################################ |
| 8 |
# 1. Deploy a group on server1. |
| 9 |
[connection server1] |
| 10 |
include/start_and_bootstrap_group_replication.inc |
| 11 |
|
| 12 |
############################################################ |
| 13 |
# 2. Configure a channel on server1 that replicates from |
| 14 |
# server2. |
| 15 |
[connection server1] |
| 16 |
CHANGE REPLICATION SOURCE TO SOURCE_HOST='127.0.0.1', SOURCE_USER='root', SOURCE_PORT=SERVER_2_PORT, SOURCE_AUTO_POSITION=1 FOR CHANNEL 'ch1'; |
| 17 |
Warnings: |
| 18 |
Note 1759 Sending passwords in plain text without SSL/TLS is extremely insecure. |
| 19 |
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. |
| 20 |
include/start_slave.inc [FOR CHANNEL 'ch1'] |
| 21 |
|
| 22 |
############################################################ |
| 23 |
# 3. Stop Group Replication on server1 with autocommit disabled. |
| 24 |
[connection server1] |
| 25 |
SET @saved_autocommit = @@SESSION.autocommit; |
| 26 |
SET @@SESSION.autocommit = 0; |
| 27 |
STOP GROUP_REPLICATION; |
| 28 |
COMMIT; |
| 29 |
|
| 30 |
############################################################ |
| 31 |
# 4. Assert that no transaction was logged due to |
| 32 |
# STOP GROUP_REPLICATION; |
| 33 |
[connection server1] |
| 34 |
include/gr_wait_for_member_state.inc |
| 35 |
include/assert.inc [STOP GROUP_REPLICATION did not generate a GTID] |
| 36 |
include/assert_binlog_events.inc [Gtid # Query/BEGIN # View_change # Query/COMMIT] |
| 37 |
|
| 38 |
############################################################ |
| 39 |
# 5. Clean up. |
| 40 |
[connection server1] |
| 41 |
SET @@SESSION.autocommit = @saved_autocommit; |
| 42 |
include/rpl_reset_slave.inc |
| 43 |
include/group_replication_end.inc |