~ubuntu-branches/ubuntu/precise/mysql-5.1/precise

« back to all changes in this revision

Viewing changes to mysql-test/suite/rpl/r/rpl_stm_log.result

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Tretkowski
  • Date: 2010-03-17 14:56:02 UTC
  • Revision ID: james.westby@ubuntu.com-20100317145602-x7e30l1b2sb5s6w6
Tags: upstream-5.1.45
ImportĀ upstreamĀ versionĀ 5.1.45

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
stop slave;
 
2
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
 
3
reset master;
 
4
reset slave;
 
5
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
 
6
start slave;
 
7
include/stop_slave.inc
 
8
reset master;
 
9
reset slave;
 
10
start slave;
 
11
create table t1(n int not null auto_increment primary key)ENGINE=MyISAM;
 
12
insert into t1 values (NULL);
 
13
drop table t1;
 
14
create table t1 (word char(20) not null)ENGINE=MyISAM;
 
15
load data infile 'LOAD_FILE' into table t1 ignore 1 lines;
 
16
select count(*) from t1;
 
17
count(*)
 
18
69
 
19
show binlog events;
 
20
Log_name        Pos     Event_type      Server_id       End_log_pos     Info
 
21
master-bin.000001       #       Format_desc     1       #       Server ver: VERSION, Binlog ver: 4
 
22
master-bin.000001       #       Query   1       #       use `test`; create table t1(n int not null auto_increment primary key)ENGINE=MyISAM
 
23
master-bin.000001       #       Intvar  1       #       INSERT_ID=1
 
24
master-bin.000001       #       Query   1       #       use `test`; insert into t1 values (NULL)
 
25
master-bin.000001       #       Query   1       #       use `test`; drop table t1
 
26
master-bin.000001       #       Query   1       #       use `test`; create table t1 (word char(20) not null)ENGINE=MyISAM
 
27
master-bin.000001       #       Begin_load_query        1       #       ;file_id=1;block_len=581
 
28
master-bin.000001       #       Execute_load_query      1       #       use `test`; LOAD DATA INFILE '../../std_data/words.dat' INTO TABLE `t1` FIELDS TERMINATED BY '\t' ENCLOSED BY '' ESCAPED BY '\\' LINES TERMINATED BY '\n' IGNORE 1 LINES  (`word`) ;file_id=1
 
29
show binlog events from 106 limit 1;
 
30
Log_name        Pos     Event_type      Server_id       End_log_pos     Info
 
31
master-bin.000001       #       Query   1       #       use `test`; create table t1(n int not null auto_increment primary key)ENGINE=MyISAM
 
32
show binlog events from 106 limit 2;
 
33
Log_name        Pos     Event_type      Server_id       End_log_pos     Info
 
34
master-bin.000001       #       Query   1       #       use `test`; create table t1(n int not null auto_increment primary key)ENGINE=MyISAM
 
35
master-bin.000001       #       Intvar  1       #       INSERT_ID=1
 
36
show binlog events from 106 limit 2,1;
 
37
Log_name        Pos     Event_type      Server_id       End_log_pos     Info
 
38
master-bin.000001       #       Query   1       #       use `test`; insert into t1 values (NULL)
 
39
flush logs;
 
40
create table t3 (a int)ENGINE=MyISAM;
 
41
select * from t1 order by 1 asc;
 
42
word
 
43
Aarhus
 
44
Aaron
 
45
Aaron
 
46
Ababa
 
47
Ababa
 
48
aback
 
49
aback
 
50
abaft
 
51
abaft
 
52
abandon
 
53
abandon
 
54
abandoned
 
55
abandoned
 
56
abandoning
 
57
abandoning
 
58
abandonment
 
59
abandonment
 
60
abandons
 
61
abandons
 
62
abase
 
63
abased
 
64
abasement
 
65
abasements
 
66
abases
 
67
abash
 
68
abashed
 
69
abashes
 
70
abashing
 
71
abasing
 
72
abate
 
73
abated
 
74
abatement
 
75
abatements
 
76
abater
 
77
abates
 
78
abating
 
79
Abba
 
80
abbe
 
81
abbey
 
82
abbeys
 
83
abbot
 
84
abbots
 
85
Abbott
 
86
abbreviate
 
87
abbreviated
 
88
abbreviates
 
89
abbreviating
 
90
abbreviation
 
91
abbreviations
 
92
Abby
 
93
abdomen
 
94
abdomens
 
95
abdominal
 
96
abduct
 
97
abducted
 
98
abduction
 
99
abductions
 
100
abductor
 
101
abductors
 
102
abducts
 
103
Abe
 
104
abed
 
105
Abel
 
106
Abelian
 
107
Abelson
 
108
Aberdeen
 
109
Abernathy
 
110
aberrant
 
111
aberration
 
112
select * from t1 order by 1 asc;
 
113
word
 
114
Aarhus
 
115
Aaron
 
116
Aaron
 
117
Ababa
 
118
Ababa
 
119
aback
 
120
aback
 
121
abaft
 
122
abaft
 
123
abandon
 
124
abandon
 
125
abandoned
 
126
abandoned
 
127
abandoning
 
128
abandoning
 
129
abandonment
 
130
abandonment
 
131
abandons
 
132
abandons
 
133
abase
 
134
abased
 
135
abasement
 
136
abasements
 
137
abases
 
138
abash
 
139
abashed
 
140
abashes
 
141
abashing
 
142
abasing
 
143
abate
 
144
abated
 
145
abatement
 
146
abatements
 
147
abater
 
148
abates
 
149
abating
 
150
Abba
 
151
abbe
 
152
abbey
 
153
abbeys
 
154
abbot
 
155
abbots
 
156
Abbott
 
157
abbreviate
 
158
abbreviated
 
159
abbreviates
 
160
abbreviating
 
161
abbreviation
 
162
abbreviations
 
163
Abby
 
164
abdomen
 
165
abdomens
 
166
abdominal
 
167
abduct
 
168
abducted
 
169
abduction
 
170
abductions
 
171
abductor
 
172
abductors
 
173
abducts
 
174
Abe
 
175
abed
 
176
Abel
 
177
Abelian
 
178
Abelson
 
179
Aberdeen
 
180
Abernathy
 
181
aberrant
 
182
aberration
 
183
flush logs;
 
184
include/stop_slave.inc
 
185
include/start_slave.inc
 
186
create table t2 (n int)ENGINE=MyISAM;
 
187
insert into t2 values (1);
 
188
show binlog events from <binlog_start>;
 
189
Log_name        Pos     Event_type      Server_id       End_log_pos     Info
 
190
master-bin.000001       #       Query   #       #       use `test`; create table t1(n int not null auto_increment primary key)ENGINE=MyISAM
 
191
master-bin.000001       #       Intvar  #       #       INSERT_ID=1
 
192
master-bin.000001       #       Query   #       #       use `test`; insert into t1 values (NULL)
 
193
master-bin.000001       #       Query   #       #       use `test`; drop table t1
 
194
master-bin.000001       #       Query   #       #       use `test`; create table t1 (word char(20) not null)ENGINE=MyISAM
 
195
master-bin.000001       #       Begin_load_query        #       #       ;file_id=#;block_len=#
 
196
master-bin.000001       #       Execute_load_query      #       #       use `test`; LOAD DATA INFILE '../../std_data/words.dat' INTO TABLE `t1` FIELDS TERMINATED BY '\t' ENCLOSED BY '' ESCAPED BY '\\' LINES TERMINATED BY '\n' IGNORE 1 LINES  (`word`) ;file_id=#
 
197
master-bin.000001       #       Rotate  #       #       master-bin.000002;pos=4
 
198
show binlog events in 'master-bin.000002';
 
199
Log_name        Pos     Event_type      Server_id       End_log_pos     Info
 
200
master-bin.000002       #       Format_desc     1       #       Server ver: VERSION, Binlog ver: 4
 
201
master-bin.000002       #       Query   1       #       use `test`; create table t3 (a int)ENGINE=MyISAM
 
202
master-bin.000002       #       Query   1       #       use `test`; create table t2 (n int)ENGINE=MyISAM
 
203
master-bin.000002       #       Query   1       #       use `test`; insert into t2 values (1)
 
204
show binary logs;
 
205
Log_name        File_size
 
206
master-bin.000001       #
 
207
master-bin.000002       #
 
208
show binary logs;
 
209
Log_name        File_size
 
210
slave-bin.000001        #
 
211
slave-bin.000002        #
 
212
show binlog events in 'slave-bin.000001' from 4;
 
213
Log_name        Pos     Event_type      Server_id       End_log_pos     Info
 
214
slave-bin.000001        #       Format_desc     2       #       Server ver: VERSION, Binlog ver: 4
 
215
slave-bin.000001        #       Query   1       #       use `test`; create table t1(n int not null auto_increment primary key)ENGINE=MyISAM
 
216
slave-bin.000001        #       Intvar  1       #       INSERT_ID=1
 
217
slave-bin.000001        #       Query   1       #       use `test`; insert into t1 values (NULL)
 
218
slave-bin.000001        #       Query   1       #       use `test`; drop table t1
 
219
slave-bin.000001        #       Query   1       #       use `test`; create table t1 (word char(20) not null)ENGINE=MyISAM
 
220
slave-bin.000001        #       Begin_load_query        1       #       ;file_id=1;block_len=581
 
221
slave-bin.000001        #       Execute_load_query      1       #       use `test`; LOAD DATA INFILE '../../tmp/SQL_LOAD-2-1-1.data' INTO TABLE `t1` FIELDS TERMINATED BY '\t' ENCLOSED BY '' ESCAPED BY '\\' LINES TERMINATED BY '\n' IGNORE 1 LINES  (`word`) ;file_id=1
 
222
slave-bin.000001        #       Query   1       #       use `test`; create table t3 (a int)ENGINE=MyISAM
 
223
slave-bin.000001        #       Rotate  2       #       slave-bin.000002;pos=4
 
224
show binlog events in 'slave-bin.000002' from 4;
 
225
Log_name        Pos     Event_type      Server_id       End_log_pos     Info
 
226
slave-bin.000002        #       Format_desc     2       #       Server ver: VERSION, Binlog ver: 4
 
227
slave-bin.000002        #       Query   1       #       use `test`; create table t2 (n int)ENGINE=MyISAM
 
228
slave-bin.000002        #       Query   1       #       use `test`; insert into t2 values (1)
 
229
SHOW SLAVE STATUS;
 
230
Slave_IO_State  #
 
231
Master_Host     127.0.0.1
 
232
Master_User     root
 
233
Master_Port     MASTER_PORT
 
234
Connect_Retry   1
 
235
Master_Log_File master-bin.000002
 
236
Read_Master_Log_Pos     392
 
237
Relay_Log_File  #
 
238
Relay_Log_Pos   #
 
239
Relay_Master_Log_File   master-bin.000002
 
240
Slave_IO_Running        Yes
 
241
Slave_SQL_Running       Yes
 
242
Replicate_Do_DB 
 
243
Replicate_Ignore_DB     
 
244
Replicate_Do_Table      
 
245
Replicate_Ignore_Table  #
 
246
Replicate_Wild_Do_Table 
 
247
Replicate_Wild_Ignore_Table     
 
248
Last_Errno      0
 
249
Last_Error      
 
250
Skip_Counter    0
 
251
Exec_Master_Log_Pos     392
 
252
Relay_Log_Space #
 
253
Until_Condition None
 
254
Until_Log_File  
 
255
Until_Log_Pos   0
 
256
Master_SSL_Allowed      No
 
257
Master_SSL_CA_File      
 
258
Master_SSL_CA_Path      
 
259
Master_SSL_Cert 
 
260
Master_SSL_Cipher       
 
261
Master_SSL_Key  
 
262
Seconds_Behind_Master   #
 
263
Master_SSL_Verify_Server_Cert   No
 
264
Last_IO_Errno   #
 
265
Last_IO_Error   #
 
266
Last_SQL_Errno  0
 
267
Last_SQL_Error  
 
268
show binlog events in 'slave-bin.000005' from 4;
 
269
ERROR HY000: Error when executing command SHOW BINLOG EVENTS: Could not find target log
 
270
DROP TABLE t1;
 
271
DROP TABLE t2;
 
272
DROP TABLE t3;
 
273
stop slave;
 
274
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
 
275
reset master;
 
276
reset slave;
 
277
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
 
278
start slave;
 
279
create table t1(a int auto_increment primary key, b int);
 
280
insert into t1 values (NULL, 1);
 
281
set insert_id=5;
 
282
insert into t1 values (NULL, last_insert_id()), (NULL, last_insert_id());
 
283
show binlog events from <binlog_start>;
 
284
Log_name        Pos     Event_type      Server_id       End_log_pos     Info
 
285
master-bin.000001       #       Query   #       #       use `test`; create table t1(a int auto_increment primary key, b int)
 
286
master-bin.000001       #       Intvar  #       #       INSERT_ID=1
 
287
master-bin.000001       #       Query   #       #       use `test`; insert into t1 values (NULL, 1)
 
288
master-bin.000001       #       Intvar  #       #       LAST_INSERT_ID=1
 
289
master-bin.000001       #       Intvar  #       #       INSERT_ID=5
 
290
master-bin.000001       #       Query   #       #       use `test`; insert into t1 values (NULL, last_insert_id()), (NULL, last_insert_id())
 
291
select * from t1;
 
292
a       b
 
293
1       1
 
294
5       1
 
295
6       1
 
296
drop table t1;