Debian Codegraph @

mysql-test/suite/rpl/r/rpl_operation_ignore_super_read_only.result

raw
1 include/master-slave.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 master]
6 [connection master]
7 CREATE TABLE t1(a INT);
8 INSERT INTO t1 VALUES(1);
9 DROP TABLE t1;
10 include/sync_slave_sql_with_master.inc
11 SET GLOBAL super_read_only= 1;
12 SET AUTOCOMMIT= ON;
13 SHOW VARIABLES like '%autocommit%';
14 Variable_name Value
15 autocommit ON
16 ####################################################################
17 # Test Case1: STOP SLAVE command
18 ####################################################################
19 include/stop_slave.inc
20 ####################################################################
21 # Test Case2: CHANGE REPLICATION FILTER command
22 ####################################################################
23 CHANGE REPLICATION FILTER REPLICATE_DO_DB=(test);
24 CHANGE REPLICATION FILTER REPLICATE_DO_DB=();
25 ####################################################################
26 # Test Case3: CHANGE MASTER command
27 ####################################################################
28 CHANGE REPLICATION SOURCE TO SOURCE_CONNECT_RETRY=20;
29 CHANGE REPLICATION SOURCE TO SOURCE_HOST='dummy' FOR CHANNEL 'aaa';
30 ####################################################################
31 # Test Case4: RESET SLAVE FOR CHANNEL/RESET SLAVE ALL/RESET SLAVE
32 # commands
33 ####################################################################
34 RESET SLAVE FOR CHANNEL 'aaa';
35 Warnings:
36 Warning 1287 'RESET SLAVE' is deprecated and will be removed in a future release. Please use RESET REPLICA instead
37 RESET SLAVE ALL FOR CHANNEL 'aaa';
38 Warnings:
39 Warning 1287 'RESET SLAVE' is deprecated and will be removed in a future release. Please use RESET REPLICA instead
40 RESET SLAVE;
41 Warnings:
42 Warning 1287 'RESET SLAVE' is deprecated and will be removed in a future release. Please use RESET REPLICA instead
43 ####################################################################
44 # Test Case5: START SLAVE command
45 ####################################################################
46 include/start_slave.inc
47 [connection master]
48 include/sync_slave_sql_with_master.inc
49 ####################################################################
50 # Test Case6: FLUSH BINARY LOGS command
51 ####################################################################
52 FLUSH BINARY LOGS;
53 ####################################################################
54 # Test Case7: RESET MASTER command
55 ####################################################################
56 RESET MASTER;
57 ####################################################################
58 # Test Case8: SET GLOBAL GTID_PURGED command
59 ####################################################################
60 SET GLOBAL gtid_purged= 'MASTER_UUID:1';
61 ####################################################################
62 # Test Case9: Server Restart
63 ####################################################################
64 include/rpl_restart_server.inc [server_number=2]
65 include/assert.inc [Read_Master_Log_Pos before and after restart are same.]
66 include/start_slave.inc
67 [connection master]
68 include/sync_slave_sql_with_master.inc
69 "Clean up"
70 SET AUTOCOMMIT= SAVED_AUTOCOMMIT;
71 SET GLOBAL super_read_only= SAVED_SUPER_READ_ONLY;
72 SET GLOBAL read_only= SAVED_READ_ONLY;
73 include/stop_slave.inc
74 CHANGE REPLICATION SOURCE TO SOURCE_HOST='127.0.0.1', SOURCE_PORT=MASTER_PORT, SOURCE_USER='root';
75 Warnings:
76 Note #### Sending passwords in plain text without SSL/TLS is extremely insecure.
77 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.
78 include/start_slave.inc
79 [connection master]
80 include/sync_slave_sql_with_master.inc
81 include/rpl_reset.inc
82 [connection master]
83 CREATE TABLE t1(a INT);
84 INSERT INTO t1 VALUES(1);
85 DROP TABLE t1;
86 include/sync_slave_sql_with_master.inc
87 SET GLOBAL super_read_only= 1;
88 SET AUTOCOMMIT= OFF;
89 SHOW VARIABLES like '%autocommit%';
90 Variable_name Value
91 autocommit OFF
92 ####################################################################
93 # Test Case1: STOP SLAVE command
94 ####################################################################
95 include/stop_slave.inc
96 ####################################################################
97 # Test Case2: CHANGE REPLICATION FILTER command
98 ####################################################################
99 CHANGE REPLICATION FILTER REPLICATE_DO_DB=(test);
100 CHANGE REPLICATION FILTER REPLICATE_DO_DB=();
101 ####################################################################
102 # Test Case3: CHANGE MASTER command
103 ####################################################################
104 CHANGE REPLICATION SOURCE TO SOURCE_CONNECT_RETRY=20;
105 CHANGE REPLICATION SOURCE TO SOURCE_HOST='dummy' FOR CHANNEL 'aaa';
106 ####################################################################
107 # Test Case4: RESET SLAVE FOR CHANNEL/RESET SLAVE ALL/RESET SLAVE
108 # commands
109 ####################################################################
110 RESET SLAVE FOR CHANNEL 'aaa';
111 Warnings:
112 Warning 1287 'RESET SLAVE' is deprecated and will be removed in a future release. Please use RESET REPLICA instead
113 RESET SLAVE ALL FOR CHANNEL 'aaa';
114 Warnings:
115 Warning 1287 'RESET SLAVE' is deprecated and will be removed in a future release. Please use RESET REPLICA instead
116 RESET SLAVE;
117 Warnings:
118 Warning 1287 'RESET SLAVE' is deprecated and will be removed in a future release. Please use RESET REPLICA instead
119 ####################################################################
120 # Test Case5: START SLAVE command
121 ####################################################################
122 include/start_slave.inc
123 [connection master]
124 include/sync_slave_sql_with_master.inc
125 ####################################################################
126 # Test Case6: FLUSH BINARY LOGS command
127 ####################################################################
128 FLUSH BINARY LOGS;
129 ####################################################################
130 # Test Case7: RESET MASTER command
131 ####################################################################
132 RESET MASTER;
133 ####################################################################
134 # Test Case8: SET GLOBAL GTID_PURGED command
135 ####################################################################
136 SET GLOBAL gtid_purged= 'MASTER_UUID:1';
137 ####################################################################
138 # Test Case9: Server Restart
139 ####################################################################
140 include/rpl_restart_server.inc [server_number=2]
141 include/assert.inc [Read_Master_Log_Pos before and after restart are same.]
142 include/start_slave.inc
143 [connection master]
144 include/sync_slave_sql_with_master.inc
145 "Clean up"
146 SET AUTOCOMMIT= SAVED_AUTOCOMMIT;
147 SET GLOBAL super_read_only= SAVED_SUPER_READ_ONLY;
148 SET GLOBAL read_only= SAVED_READ_ONLY;
149 include/stop_slave.inc
150 CHANGE REPLICATION SOURCE TO SOURCE_HOST='127.0.0.1', SOURCE_PORT=MASTER_PORT, SOURCE_USER='root';
151 Warnings:
152 Note #### Sending passwords in plain text without SSL/TLS is extremely insecure.
153 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.
154 include/start_slave.inc
155 [connection master]
156 include/sync_slave_sql_with_master.inc
157 include/rpl_reset.inc
158 include/rpl_end.inc