Debian Codegraph @

mysql-test/suite/group_replication/r/gr_without_perfschema.result

raw
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. Create a table on server1 and generate workload to be recovered
9 CREATE TABLE t1 (c1 INT NOT NULL PRIMARY KEY) ENGINE=InnoDB;
10 INSERT INTO t1 VALUES (1);
11
12 #################################################################
13 # 2. Start group replication on server1, bootstrapping the group
14 SET GLOBAL group_replication_group_name= "GROUP_REPLICATION_GROUP_NAME";
15 START GROUP_REPLICATION;
16
17 #################################################################
18 # 3. Start group replication on server2 and wait until recovered
19 [connection server2]
20 SET GLOBAL group_replication_group_name= "GROUP_REPLICATION_GROUP_NAME";
21 START GROUP_REPLICATION;
22 Wait until server2 recovered table t1
23 Wait until server2 recovered the single row of table t1
24 Wait until server2 recovery has finished
25
26 #########################################################################
27 # 4. Check if GR works fine: generate workload to be certified/replicated
28 INSERT INTO t1 VALUES (2);
29 [connection server1]
30 Wait until server1 has the table with 2 rows
31 DROP TABLE t1;
32 [connection server2]
33 Wait until server2 has dropped table t1
34
35 #####################################################
36 # 5. Clean up: stop group replication on both members
37 STOP GROUP_REPLICATION;
38 [connection server1]
39 STOP GROUP_REPLICATION;
40 include/group_replication_end.inc