25 lines
1.1 KiB
Plaintext
25 lines
1.1 KiB
Plaintext
include/group_replication.inc
|
|
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]
|
|
CREATE TABLE t1 (i INT PRIMARY KEY);
|
|
include/rpl_sync.inc
|
|
include/stop_group_replication.inc
|
|
INSERT INTO t1 VALUES(1);
|
|
# Add lock tables here to block setting super_read_only mode on server.
|
|
LOCK TABLE t1 WRITE;
|
|
# Start GR on the server. It should be blocked as we have a table locked.
|
|
START GROUP_REPLICATION;
|
|
# Ensure that the server is actually blocked while setting the
|
|
# super_read_only mode.
|
|
[connection server_1_1]
|
|
UNLOCK TABLES;
|
|
include/gr_wait_for_member_state.inc
|
|
# Add ASSERT to check that the recovery passes successfully and a row
|
|
# is inserted.
|
|
include/assert.inc [There should be one row inserted in the table.]
|
|
# Cleanup
|
|
DROP TABLE t1;
|
|
include/group_replication_end.inc
|