1
drop table if exists t1, t2, t3, t4;
2
drop table if exists t1, t2, t3, t4;
4
Got one of the listed errors
6
ERROR HY000: Could not initialize master info structure; more error messages can be found in the MySQL error log
7
change master to master_host='127.0.0.1',master_port=MASTER_PORT, master_user='root';
8
ERROR HY000: Could not initialize master info structure; more error messages can be found in the MySQL error log
10
change master to master_host='127.0.0.1',master_port=MASTER_PORT, master_user='root';
13
create temporary table temp_table (a char(80) not null);
14
insert into temp_table values ("testing temporary tables");
15
create table t1 (s text);
16
insert into t1 values('Could not break slave'),('Tried hard');
21
Master_Port MASTER_PORT
23
Master_Log_File master-bin.000001
27
Relay_Master_Log_File master-bin.000001
33
Replicate_Ignore_Table #
34
Replicate_Wild_Do_Table
35
Replicate_Wild_Ignore_Table
50
Seconds_Behind_Master #
51
Master_SSL_Verify_Server_Cert No
61
create table t2(m int not null auto_increment primary key);
62
insert into t2 values (34),(67),(123);
69
create table t3 select * from temp_table;
72
testing temporary tables
73
drop table temp_table, t3;
74
insert into t2 values(1234);
76
insert into t2 values(NULL);
77
set global sql_slave_skip_counter=1;
79
purge master logs to 'master-bin.000002';
81
Log_name master-bin.000002
83
Log_name master-bin.000003
85
purge binary logs to 'master-bin.000002';
90
select @time_for_purge:=DATE_ADD(UPDATE_TIME, INTERVAL 1 SECOND)
91
from information_schema.tables
92
where TABLE_SCHEMA="test" and TABLE_NAME="t2";
93
purge master logs before (@time_for_purge);
97
insert into t2 values (65);
100
Master_Host 127.0.0.1
102
Master_Port MASTER_PORT
104
Master_Log_File master-bin.000003
105
Read_Master_Log_Pos #
108
Relay_Master_Log_File master-bin.000003
110
Slave_SQL_Running Yes
114
Replicate_Ignore_Table #
115
Replicate_Wild_Do_Table
116
Replicate_Wild_Ignore_Table
120
Exec_Master_Log_Pos #
125
Master_SSL_Allowed No
131
Seconds_Behind_Master #
132
Master_SSL_Verify_Server_Cert No
144
create temporary table temp_table (a char(80) not null);
145
insert into temp_table values ("testing temporary tables part 2");
146
create table t3 (n int);
147
select count(*) from t3 where n >= 4;
150
create table t4 select * from temp_table;
157
File Position Binlog_Do_DB Binlog_Ignore_DB
158
master-bin.000005 # <Binlog_Do_DB> <Binlog_Ignore_DB>
161
testing temporary tables part 2
164
Master_Host 127.0.0.1
166
Master_Port MASTER_PORT
168
Master_Log_File master-bin.000005
169
Read_Master_Log_Pos #
172
Relay_Master_Log_File master-bin.000005
174
Slave_SQL_Running Yes
178
Replicate_Ignore_Table #
179
Replicate_Wild_Do_Table
180
Replicate_Wild_Ignore_Table
184
Exec_Master_Log_Pos #
189
Master_SSL_Allowed No
195
Seconds_Behind_Master #
196
Master_SSL_Verify_Server_Cert No
202
select count(*) from t3 where n >= 4;
206
drop table if exists t1,t2,t3,t4;
208
show binlog events in 'non existing_binlog_file';
209
ERROR HY000: Error when executing command SHOW BINLOG EVENTS: Could not find target log
210
purge master logs before now();
211
show binlog events in '';
212
ERROR HY000: Error when executing command SHOW BINLOG EVENTS: Could not find target log
213
purge master logs before now();