54 lines
3.2 KiB
Plaintext
54 lines
3.2 KiB
Plaintext
include/group_replication.inc [rpl_server_count=3]
|
|
Warnings:
|
|
Note #### Sending passwords in plain text without SSL/TLS is extremely insecure.
|
|
Note #### Storing MySQL user name or password information in the master info repository is not secure and is therefore not recommended. Please consider using the USER and PASSWORD connection options for START SLAVE; see the 'START SLAVE Syntax' in the MySQL Manual for more information.
|
|
[connection server1]
|
|
server2
|
|
include/start_and_bootstrap_group_replication.inc
|
|
CREATE TABLE t1 (c1 INT NOT NULL PRIMARY KEY) ENGINE=InnoDB;
|
|
INSERT INTO t1 VALUES (1);
|
|
server1
|
|
include/start_group_replication.inc
|
|
include/rpl_gr_wait_for_number_of_members.inc
|
|
include/stop_group_replication.inc
|
|
INSERT INTO t1 VALUES (2);
|
|
INSERT INTO t1 VALUES (3);
|
|
LOCK TABLE t1 READ;
|
|
include/start_group_replication.inc
|
|
STOP SLAVE;
|
|
Warnings:
|
|
Note 3084 Replication thread(s) for channel '' are already stopped.
|
|
include/assert.inc ['The group replication recovery channel is ON']
|
|
SET GLOBAL SUPER_READ_ONLY=0;
|
|
CHANGE MASTER TO MASTER_HOST="127.0.0.1", MASTER_USER="root", MASTER_PASSWORD="", MASTER_PORT=SERVER_3_PORT, MASTER_AUTO_POSITION=1 FOR CHANNEL "channel_1";
|
|
Warnings:
|
|
Note 1759 Sending passwords in plain text without SSL/TLS is extremely insecure.
|
|
Note 1760 Storing MySQL user name or password information in the master info repository is not secure and is therefore not recommended. Please consider using the USER and PASSWORD connection options for START SLAVE; see the 'START SLAVE Syntax' in the MySQL Manual for more information.
|
|
include/assert.inc ['The slave channel is present']
|
|
RESET SLAVE ALL;
|
|
ERROR HY000: RESET SLAVE ALL FOR CHANNEL cannot be performed on channel 'group_replication_applier'.
|
|
include/assert.inc ['The group replication recovery channel is present']
|
|
include/assert.inc ['The group replication recovery channel is ON']
|
|
include/assert.inc ['The slave channel is not present']
|
|
CHANGE MASTER TO MASTER_HOST="127.0.0.1", MASTER_USER="root", MASTER_PASSWORD="", MASTER_PORT=SERVER_3_PORT, MASTER_AUTO_POSITION=1 FOR CHANNEL "channel_1";
|
|
Warnings:
|
|
Note 1759 Sending passwords in plain text without SSL/TLS is extremely insecure.
|
|
Note 1760 Storing MySQL user name or password information in the master info repository is not secure and is therefore not recommended. Please consider using the USER and PASSWORD connection options for START SLAVE; see the 'START SLAVE Syntax' in the MySQL Manual for more information.
|
|
include/start_slave.inc
|
|
include/assert.inc ['The created slave channel is ON']
|
|
# Kill and restart:--group_replication_local_address=GROUP_REPLICATION_LOCAL_ADDRESS --group_replication_group_seeds=GROUP_REPLICATION_GROUP_SEEDS
|
|
include/rpl_reconnect.inc
|
|
[connection server2]
|
|
include/gr_wait_for_member_state.inc
|
|
include/rpl_gr_wait_for_number_of_members.inc
|
|
[connection server1]
|
|
include/wait_for_slave_to_start.inc [FOR CHANNEL 'channel_1']
|
|
include/assert.inc ['The group replication recovery channel is present']
|
|
include/assert.inc ['The group replication recovery channel is OFF']
|
|
include/assert.inc ['The created slave channel is ON']
|
|
DROP TABLE t1;
|
|
include/stop_slave.inc
|
|
CHANGE MASTER TO MASTER_AUTO_POSITION=0 FOR CHANNEL "channel_1";
|
|
include/start_group_replication.inc
|
|
include/group_replication_end.inc
|