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

« back to all changes in this revision

Viewing changes to mysql-test/suite/rpl/r/rpl_row_colSize.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
DROP TABLE IF EXISTS t1;
 
8
**** Testing WL#3228 changes. ****
 
9
*** Create "wider" table on slave ***
 
10
Checking MYSQL_TYPE_NEWDECIMAL fields
 
11
DROP TABLE IF EXISTS t1;
 
12
Warnings:
 
13
Note    1051    Unknown table 't1'
 
14
STOP SLAVE;
 
15
RESET SLAVE;
 
16
CREATE TABLE t1 (a DECIMAL(5,2));
 
17
CREATE TABLE t1 (a DECIMAL(20, 10));
 
18
RESET MASTER;
 
19
INSERT INTO t1 VALUES (901251.90125);
 
20
START SLAVE;
 
21
SHOW SLAVE STATUS;
 
22
Slave_IO_State  #
 
23
Master_Host     127.0.0.1
 
24
Master_User     root
 
25
Master_Port     #
 
26
Connect_Retry   1
 
27
Master_Log_File master-bin.000001
 
28
Read_Master_Log_Pos     #
 
29
Relay_Log_File  #
 
30
Relay_Log_Pos   #
 
31
Relay_Master_Log_File   master-bin.000001
 
32
Slave_IO_Running        Yes
 
33
Slave_SQL_Running       No
 
34
Replicate_Do_DB 
 
35
Replicate_Ignore_DB     
 
36
Replicate_Do_Table      
 
37
Replicate_Ignore_Table  #
 
38
Replicate_Wild_Do_Table 
 
39
Replicate_Wild_Ignore_Table     
 
40
Last_Errno      1535
 
41
Last_Error      Table definition on master and slave does not match: Column 0 size mismatch - master has size 10, test.t1 on slave has size 3. Master's column size should be <= the slave's column size.
 
42
Skip_Counter    0
 
43
Exec_Master_Log_Pos     #
 
44
Relay_Log_Space #
 
45
Until_Condition None
 
46
Until_Log_File  
 
47
Until_Log_Pos   0
 
48
Master_SSL_Allowed      No
 
49
Master_SSL_CA_File      
 
50
Master_SSL_CA_Path      
 
51
Master_SSL_Cert 
 
52
Master_SSL_Cipher       
 
53
Master_SSL_Key  
 
54
Seconds_Behind_Master   #
 
55
Master_SSL_Verify_Server_Cert   No
 
56
Last_IO_Errno   #
 
57
Last_IO_Error   #
 
58
Last_SQL_Errno  1535
 
59
Last_SQL_Error  Table definition on master and slave does not match: Column 0 size mismatch - master has size 10, test.t1 on slave has size 3. Master's column size should be <= the slave's column size.
 
60
SELECT COUNT(*) FROM t1;
 
61
COUNT(*)
 
62
0
 
63
STOP SLAVE;
 
64
RESET SLAVE;
 
65
RESET MASTER;
 
66
START SLAVE;
 
67
DROP TABLE IF EXISTS t1;
 
68
STOP SLAVE;
 
69
RESET SLAVE;
 
70
CREATE TABLE t1 (a DECIMAL(27, 9));
 
71
CREATE TABLE t1 (a DECIMAL(27, 18));
 
72
RESET MASTER;
 
73
INSERT INTO t1 VALUES (901251.90125);
 
74
START SLAVE;
 
75
SHOW SLAVE STATUS;
 
76
Slave_IO_State  #
 
77
Master_Host     127.0.0.1
 
78
Master_User     root
 
79
Master_Port     #
 
80
Connect_Retry   1
 
81
Master_Log_File master-bin.000001
 
82
Read_Master_Log_Pos     #
 
83
Relay_Log_File  #
 
84
Relay_Log_Pos   #
 
85
Relay_Master_Log_File   master-bin.000001
 
86
Slave_IO_Running        Yes
 
87
Slave_SQL_Running       No
 
88
Replicate_Do_DB 
 
89
Replicate_Ignore_DB     
 
90
Replicate_Do_Table      
 
91
Replicate_Ignore_Table  #
 
92
Replicate_Wild_Do_Table 
 
93
Replicate_Wild_Ignore_Table     
 
94
Last_Errno      1535
 
95
Last_Error      Table definition on master and slave does not match: Column 0 size mismatch - master has size 12, test.t1 on slave has size 12. Master's column size should be <= the slave's column size.
 
96
Skip_Counter    0
 
97
Exec_Master_Log_Pos     #
 
98
Relay_Log_Space #
 
99
Until_Condition None
 
100
Until_Log_File  
 
101
Until_Log_Pos   0
 
102
Master_SSL_Allowed      No
 
103
Master_SSL_CA_File      
 
104
Master_SSL_CA_Path      
 
105
Master_SSL_Cert 
 
106
Master_SSL_Cipher       
 
107
Master_SSL_Key  
 
108
Seconds_Behind_Master   #
 
109
Master_SSL_Verify_Server_Cert   No
 
110
Last_IO_Errno   #
 
111
Last_IO_Error   #
 
112
Last_SQL_Errno  1535
 
113
Last_SQL_Error  Table definition on master and slave does not match: Column 0 size mismatch - master has size 12, test.t1 on slave has size 12. Master's column size should be <= the slave's column size.
 
114
SELECT COUNT(*) FROM t1;
 
115
COUNT(*)
 
116
0
 
117
STOP SLAVE;
 
118
RESET SLAVE;
 
119
RESET MASTER;
 
120
START SLAVE;
 
121
DROP TABLE IF EXISTS t1;
 
122
STOP SLAVE;
 
123
RESET SLAVE;
 
124
CREATE TABLE t1 (a NUMERIC(5,2));
 
125
CREATE TABLE t1 (a NUMERIC(20, 10));
 
126
RESET MASTER;
 
127
INSERT INTO t1 VALUES (901251.90125);
 
128
START SLAVE;
 
129
SHOW SLAVE STATUS;
 
130
Slave_IO_State  #
 
131
Master_Host     127.0.0.1
 
132
Master_User     root
 
133
Master_Port     #
 
134
Connect_Retry   1
 
135
Master_Log_File master-bin.000001
 
136
Read_Master_Log_Pos     #
 
137
Relay_Log_File  #
 
138
Relay_Log_Pos   #
 
139
Relay_Master_Log_File   master-bin.000001
 
140
Slave_IO_Running        Yes
 
141
Slave_SQL_Running       No
 
142
Replicate_Do_DB 
 
143
Replicate_Ignore_DB     
 
144
Replicate_Do_Table      
 
145
Replicate_Ignore_Table  #
 
146
Replicate_Wild_Do_Table 
 
147
Replicate_Wild_Ignore_Table     
 
148
Last_Errno      1535
 
149
Last_Error      Table definition on master and slave does not match: Column 0 size mismatch - master has size 10, test.t1 on slave has size 3. Master's column size should be <= the slave's column size.
 
150
Skip_Counter    0
 
151
Exec_Master_Log_Pos     #
 
152
Relay_Log_Space #
 
153
Until_Condition None
 
154
Until_Log_File  
 
155
Until_Log_Pos   0
 
156
Master_SSL_Allowed      No
 
157
Master_SSL_CA_File      
 
158
Master_SSL_CA_Path      
 
159
Master_SSL_Cert 
 
160
Master_SSL_Cipher       
 
161
Master_SSL_Key  
 
162
Seconds_Behind_Master   #
 
163
Master_SSL_Verify_Server_Cert   No
 
164
Last_IO_Errno   #
 
165
Last_IO_Error   #
 
166
Last_SQL_Errno  1535
 
167
Last_SQL_Error  Table definition on master and slave does not match: Column 0 size mismatch - master has size 10, test.t1 on slave has size 3. Master's column size should be <= the slave's column size.
 
168
SELECT COUNT(*) FROM t1;
 
169
COUNT(*)
 
170
0
 
171
STOP SLAVE;
 
172
RESET SLAVE;
 
173
RESET MASTER;
 
174
START SLAVE;
 
175
Checking MYSQL_TYPE_FLOAT fields
 
176
DROP TABLE IF EXISTS t1;
 
177
STOP SLAVE;
 
178
RESET SLAVE;
 
179
CREATE TABLE t1 (a FLOAT(20));
 
180
CREATE TABLE t1 (a FLOAT(47));
 
181
RESET MASTER;
 
182
INSERT INTO t1 VALUES (901251.90125);
 
183
START SLAVE;
 
184
SHOW SLAVE STATUS;
 
185
Slave_IO_State  #
 
186
Master_Host     127.0.0.1
 
187
Master_User     root
 
188
Master_Port     #
 
189
Connect_Retry   1
 
190
Master_Log_File master-bin.000001
 
191
Read_Master_Log_Pos     #
 
192
Relay_Log_File  #
 
193
Relay_Log_Pos   #
 
194
Relay_Master_Log_File   master-bin.000001
 
195
Slave_IO_Running        Yes
 
196
Slave_SQL_Running       No
 
197
Replicate_Do_DB 
 
198
Replicate_Ignore_DB     
 
199
Replicate_Do_Table      
 
200
Replicate_Ignore_Table  #
 
201
Replicate_Wild_Do_Table 
 
202
Replicate_Wild_Ignore_Table     
 
203
Last_Errno      1535
 
204
Last_Error      Table definition on master and slave does not match: Column 0 type mismatch - received type 5, test.t1 has type 4
 
205
Skip_Counter    0
 
206
Exec_Master_Log_Pos     #
 
207
Relay_Log_Space #
 
208
Until_Condition None
 
209
Until_Log_File  
 
210
Until_Log_Pos   0
 
211
Master_SSL_Allowed      No
 
212
Master_SSL_CA_File      
 
213
Master_SSL_CA_Path      
 
214
Master_SSL_Cert 
 
215
Master_SSL_Cipher       
 
216
Master_SSL_Key  
 
217
Seconds_Behind_Master   #
 
218
Master_SSL_Verify_Server_Cert   No
 
219
Last_IO_Errno   #
 
220
Last_IO_Error   #
 
221
Last_SQL_Errno  1535
 
222
Last_SQL_Error  Table definition on master and slave does not match: Column 0 type mismatch - received type 5, test.t1 has type 4
 
223
SELECT COUNT(*) FROM t1;
 
224
COUNT(*)
 
225
0
 
226
STOP SLAVE;
 
227
RESET SLAVE;
 
228
RESET MASTER;
 
229
START SLAVE;
 
230
Checking MYSQL_TYPE_BIT fields
 
231
DROP TABLE IF EXISTS t1;
 
232
STOP SLAVE;
 
233
RESET SLAVE;
 
234
CREATE TABLE t1 (a BIT(5));
 
235
CREATE TABLE t1 (a BIT(64));
 
236
RESET MASTER;
 
237
INSERT INTO t1 VALUES (B'10101');
 
238
START SLAVE;
 
239
SHOW SLAVE STATUS;
 
240
Slave_IO_State  #
 
241
Master_Host     127.0.0.1
 
242
Master_User     root
 
243
Master_Port     #
 
244
Connect_Retry   1
 
245
Master_Log_File master-bin.000001
 
246
Read_Master_Log_Pos     #
 
247
Relay_Log_File  #
 
248
Relay_Log_Pos   #
 
249
Relay_Master_Log_File   master-bin.000001
 
250
Slave_IO_Running        Yes
 
251
Slave_SQL_Running       No
 
252
Replicate_Do_DB 
 
253
Replicate_Ignore_DB     
 
254
Replicate_Do_Table      
 
255
Replicate_Ignore_Table  #
 
256
Replicate_Wild_Do_Table 
 
257
Replicate_Wild_Ignore_Table     
 
258
Last_Errno      1535
 
259
Last_Error      Table definition on master and slave does not match: Column 0 size mismatch - master has size 8, test.t1 on slave has size 1. Master's column size should be <= the slave's column size.
 
260
Skip_Counter    0
 
261
Exec_Master_Log_Pos     #
 
262
Relay_Log_Space #
 
263
Until_Condition None
 
264
Until_Log_File  
 
265
Until_Log_Pos   0
 
266
Master_SSL_Allowed      No
 
267
Master_SSL_CA_File      
 
268
Master_SSL_CA_Path      
 
269
Master_SSL_Cert 
 
270
Master_SSL_Cipher       
 
271
Master_SSL_Key  
 
272
Seconds_Behind_Master   #
 
273
Master_SSL_Verify_Server_Cert   No
 
274
Last_IO_Errno   #
 
275
Last_IO_Error   #
 
276
Last_SQL_Errno  1535
 
277
Last_SQL_Error  Table definition on master and slave does not match: Column 0 size mismatch - master has size 8, test.t1 on slave has size 1. Master's column size should be <= the slave's column size.
 
278
SELECT COUNT(*) FROM t1;
 
279
COUNT(*)
 
280
0
 
281
STOP SLAVE;
 
282
RESET SLAVE;
 
283
RESET MASTER;
 
284
START SLAVE;
 
285
DROP TABLE IF EXISTS t1;
 
286
STOP SLAVE;
 
287
RESET SLAVE;
 
288
CREATE TABLE t1 (a BIT(11));
 
289
CREATE TABLE t1 (a BIT(12));
 
290
RESET MASTER;
 
291
INSERT INTO t1 VALUES (B'10101');
 
292
START SLAVE;
 
293
SHOW SLAVE STATUS;
 
294
Slave_IO_State  #
 
295
Master_Host     127.0.0.1
 
296
Master_User     root
 
297
Master_Port     #
 
298
Connect_Retry   1
 
299
Master_Log_File master-bin.000001
 
300
Read_Master_Log_Pos     #
 
301
Relay_Log_File  #
 
302
Relay_Log_Pos   #
 
303
Relay_Master_Log_File   master-bin.000001
 
304
Slave_IO_Running        Yes
 
305
Slave_SQL_Running       No
 
306
Replicate_Do_DB 
 
307
Replicate_Ignore_DB     
 
308
Replicate_Do_Table      
 
309
Replicate_Ignore_Table  #
 
310
Replicate_Wild_Do_Table 
 
311
Replicate_Wild_Ignore_Table     
 
312
Last_Errno      1535
 
313
Last_Error      Table definition on master and slave does not match: Column 0 size mismatch - master has size 2, test.t1 on slave has size 2. Master's column size should be <= the slave's column size.
 
314
Skip_Counter    0
 
315
Exec_Master_Log_Pos     #
 
316
Relay_Log_Space #
 
317
Until_Condition None
 
318
Until_Log_File  
 
319
Until_Log_Pos   0
 
320
Master_SSL_Allowed      No
 
321
Master_SSL_CA_File      
 
322
Master_SSL_CA_Path      
 
323
Master_SSL_Cert 
 
324
Master_SSL_Cipher       
 
325
Master_SSL_Key  
 
326
Seconds_Behind_Master   #
 
327
Master_SSL_Verify_Server_Cert   No
 
328
Last_IO_Errno   #
 
329
Last_IO_Error   #
 
330
Last_SQL_Errno  1535
 
331
Last_SQL_Error  Table definition on master and slave does not match: Column 0 size mismatch - master has size 2, test.t1 on slave has size 2. Master's column size should be <= the slave's column size.
 
332
SELECT COUNT(*) FROM t1;
 
333
COUNT(*)
 
334
0
 
335
STOP SLAVE;
 
336
RESET SLAVE;
 
337
RESET MASTER;
 
338
START SLAVE;
 
339
Checking MYSQL_TYPE_SET fields
 
340
DROP TABLE IF EXISTS t1;
 
341
STOP SLAVE;
 
342
RESET SLAVE;
 
343
CREATE TABLE t1 (a SET('4'));
 
344
CREATE TABLE t1 (a SET('1','2','3','4','5','6','7','8','9'));
 
345
RESET MASTER;
 
346
INSERT INTO t1 VALUES ('4');
 
347
START SLAVE;
 
348
SHOW SLAVE STATUS;
 
349
Slave_IO_State  #
 
350
Master_Host     127.0.0.1
 
351
Master_User     root
 
352
Master_Port     #
 
353
Connect_Retry   1
 
354
Master_Log_File master-bin.000001
 
355
Read_Master_Log_Pos     #
 
356
Relay_Log_File  #
 
357
Relay_Log_Pos   #
 
358
Relay_Master_Log_File   master-bin.000001
 
359
Slave_IO_Running        Yes
 
360
Slave_SQL_Running       No
 
361
Replicate_Do_DB 
 
362
Replicate_Ignore_DB     
 
363
Replicate_Do_Table      
 
364
Replicate_Ignore_Table  #
 
365
Replicate_Wild_Do_Table 
 
366
Replicate_Wild_Ignore_Table     
 
367
Last_Errno      1535
 
368
Last_Error      Table definition on master and slave does not match: Column 0 size mismatch - master has size 2, test.t1 on slave has size 1. Master's column size should be <= the slave's column size.
 
369
Skip_Counter    0
 
370
Exec_Master_Log_Pos     #
 
371
Relay_Log_Space #
 
372
Until_Condition None
 
373
Until_Log_File  
 
374
Until_Log_Pos   0
 
375
Master_SSL_Allowed      No
 
376
Master_SSL_CA_File      
 
377
Master_SSL_CA_Path      
 
378
Master_SSL_Cert 
 
379
Master_SSL_Cipher       
 
380
Master_SSL_Key  
 
381
Seconds_Behind_Master   #
 
382
Master_SSL_Verify_Server_Cert   No
 
383
Last_IO_Errno   #
 
384
Last_IO_Error   #
 
385
Last_SQL_Errno  1535
 
386
Last_SQL_Error  Table definition on master and slave does not match: Column 0 size mismatch - master has size 2, test.t1 on slave has size 1. Master's column size should be <= the slave's column size.
 
387
SELECT COUNT(*) FROM t1;
 
388
COUNT(*)
 
389
0
 
390
STOP SLAVE;
 
391
RESET SLAVE;
 
392
RESET MASTER;
 
393
START SLAVE;
 
394
Checking MYSQL_TYPE_STRING fields
 
395
DROP TABLE IF EXISTS t1;
 
396
STOP SLAVE;
 
397
RESET SLAVE;
 
398
CREATE TABLE t1 (a CHAR(10));
 
399
CREATE TABLE t1 (a CHAR(20));
 
400
RESET MASTER;
 
401
INSERT INTO t1 VALUES ('This is a test.');
 
402
START SLAVE;
 
403
SHOW SLAVE STATUS;
 
404
Slave_IO_State  #
 
405
Master_Host     127.0.0.1
 
406
Master_User     root
 
407
Master_Port     #
 
408
Connect_Retry   1
 
409
Master_Log_File master-bin.000001
 
410
Read_Master_Log_Pos     #
 
411
Relay_Log_File  #
 
412
Relay_Log_Pos   #
 
413
Relay_Master_Log_File   master-bin.000001
 
414
Slave_IO_Running        Yes
 
415
Slave_SQL_Running       No
 
416
Replicate_Do_DB 
 
417
Replicate_Ignore_DB     
 
418
Replicate_Do_Table      
 
419
Replicate_Ignore_Table  #
 
420
Replicate_Wild_Do_Table 
 
421
Replicate_Wild_Ignore_Table     
 
422
Last_Errno      1535
 
423
Last_Error      Table definition on master and slave does not match: Column 0 size mismatch - master has size 20, test.t1 on slave has size 11. Master's column size should be <= the slave's column size.
 
424
Skip_Counter    0
 
425
Exec_Master_Log_Pos     #
 
426
Relay_Log_Space #
 
427
Until_Condition None
 
428
Until_Log_File  
 
429
Until_Log_Pos   0
 
430
Master_SSL_Allowed      No
 
431
Master_SSL_CA_File      
 
432
Master_SSL_CA_Path      
 
433
Master_SSL_Cert 
 
434
Master_SSL_Cipher       
 
435
Master_SSL_Key  
 
436
Seconds_Behind_Master   #
 
437
Master_SSL_Verify_Server_Cert   No
 
438
Last_IO_Errno   #
 
439
Last_IO_Error   #
 
440
Last_SQL_Errno  1535
 
441
Last_SQL_Error  Table definition on master and slave does not match: Column 0 size mismatch - master has size 20, test.t1 on slave has size 11. Master's column size should be <= the slave's column size.
 
442
SELECT COUNT(*) FROM t1;
 
443
COUNT(*)
 
444
0
 
445
STOP SLAVE;
 
446
RESET SLAVE;
 
447
RESET MASTER;
 
448
START SLAVE;
 
449
Checking MYSQL_TYPE_ENUM fields
 
450
DROP TABLE IF EXISTS t1;
 
451
STOP SLAVE;
 
452
RESET SLAVE;
 
453
CREATE TABLE t1 (a ENUM('44','54'));
 
454
CREATE TABLE t1 (a ENUM(
 
455
'01','02','03','04','05','06','07','08','09',
 
456
'11','12','13','14','15','16','17','18','19',
 
457
'21','22','23','24','25','26','27','28','29',
 
458
'31','32','33','34','35','36','37','38','39',
 
459
'41','42','43','44','45','46','47','48','49',
 
460
'51','52','53','54','55','56','57','58','59',
 
461
'61','62','63','64','65','66','67','68','69',
 
462
'71','72','73','74','75','76','77','78','79',
 
463
'81','82','83','84','85','86','87','88','89',
 
464
'91','92','93','94','95','96','97','98','99',
 
465
'101','102','103','104','105','106','107','108','109',
 
466
'111','112','113','114','115','116','117','118','119',
 
467
'121','122','123','124','125','126','127','128','129',
 
468
'131','132','133','134','135','136','137','138','139',
 
469
'141','142','143','144','145','146','147','148','149',
 
470
'151','152','153','154','155','156','157','158','159',
 
471
'161','162','163','164','165','166','167','168','169',
 
472
'171','172','173','174','175','176','177','178','179',
 
473
'181','182','183','184','185','186','187','188','189',
 
474
'191','192','193','194','195','196','197','198','199',
 
475
'201','202','203','204','205','206','207','208','209',
 
476
'211','212','213','214','215','216','217','218','219',
 
477
'221','222','223','224','225','226','227','228','229',
 
478
'231','232','233','234','235','236','237','238','239',
 
479
'241','242','243','244','245','246','247','248','249',
 
480
'251','252','253','254','255','256','257','258','259',
 
481
'261','262','263','264','265','266','267','268','269',
 
482
'271','272','273','274','275','276','277','278','279',
 
483
'281','282','283','284','285','286','287','288','289',
 
484
'291','292','293','294','295','296','297','298','299'
 
485
            ));
 
486
RESET MASTER;
 
487
INSERT INTO t1 VALUES ('44');
 
488
START SLAVE;
 
489
SHOW SLAVE STATUS;
 
490
Slave_IO_State  #
 
491
Master_Host     127.0.0.1
 
492
Master_User     root
 
493
Master_Port     #
 
494
Connect_Retry   1
 
495
Master_Log_File master-bin.000001
 
496
Read_Master_Log_Pos     #
 
497
Relay_Log_File  #
 
498
Relay_Log_Pos   #
 
499
Relay_Master_Log_File   master-bin.000001
 
500
Slave_IO_Running        Yes
 
501
Slave_SQL_Running       No
 
502
Replicate_Do_DB 
 
503
Replicate_Ignore_DB     
 
504
Replicate_Do_Table      
 
505
Replicate_Ignore_Table  #
 
506
Replicate_Wild_Do_Table 
 
507
Replicate_Wild_Ignore_Table     
 
508
Last_Errno      1535
 
509
Last_Error      Table definition on master and slave does not match: Column 0 size mismatch - master has size 2, test.t1 on slave has size 1. Master's column size should be <= the slave's column size.
 
510
Skip_Counter    0
 
511
Exec_Master_Log_Pos     #
 
512
Relay_Log_Space #
 
513
Until_Condition None
 
514
Until_Log_File  
 
515
Until_Log_Pos   0
 
516
Master_SSL_Allowed      No
 
517
Master_SSL_CA_File      
 
518
Master_SSL_CA_Path      
 
519
Master_SSL_Cert 
 
520
Master_SSL_Cipher       
 
521
Master_SSL_Key  
 
522
Seconds_Behind_Master   #
 
523
Master_SSL_Verify_Server_Cert   No
 
524
Last_IO_Errno   #
 
525
Last_IO_Error   #
 
526
Last_SQL_Errno  1535
 
527
Last_SQL_Error  Table definition on master and slave does not match: Column 0 size mismatch - master has size 2, test.t1 on slave has size 1. Master's column size should be <= the slave's column size.
 
528
SELECT COUNT(*) FROM t1;
 
529
COUNT(*)
 
530
0
 
531
STOP SLAVE;
 
532
RESET SLAVE;
 
533
RESET MASTER;
 
534
START SLAVE;
 
535
Checking MYSQL_TYPE_VARCHAR fields
 
536
DROP TABLE IF EXISTS t1;
 
537
STOP SLAVE;
 
538
RESET SLAVE;
 
539
CREATE TABLE t1 (a VARCHAR(100));
 
540
CREATE TABLE t1 (a VARCHAR(2000));
 
541
RESET MASTER;
 
542
INSERT INTO t1 VALUES ('This is a test.');
 
543
START SLAVE;
 
544
SHOW SLAVE STATUS;
 
545
Slave_IO_State  #
 
546
Master_Host     127.0.0.1
 
547
Master_User     root
 
548
Master_Port     #
 
549
Connect_Retry   1
 
550
Master_Log_File master-bin.000001
 
551
Read_Master_Log_Pos     #
 
552
Relay_Log_File  #
 
553
Relay_Log_Pos   #
 
554
Relay_Master_Log_File   master-bin.000001
 
555
Slave_IO_Running        Yes
 
556
Slave_SQL_Running       No
 
557
Replicate_Do_DB 
 
558
Replicate_Ignore_DB     
 
559
Replicate_Do_Table      
 
560
Replicate_Ignore_Table  #
 
561
Replicate_Wild_Do_Table 
 
562
Replicate_Wild_Ignore_Table     
 
563
Last_Errno      1535
 
564
Last_Error      Table definition on master and slave does not match: Column 0 size mismatch - master has size 2000, test.t1 on slave has size 100. Master's column size should be <= the slave's column size.
 
565
Skip_Counter    0
 
566
Exec_Master_Log_Pos     #
 
567
Relay_Log_Space #
 
568
Until_Condition None
 
569
Until_Log_File  
 
570
Until_Log_Pos   0
 
571
Master_SSL_Allowed      No
 
572
Master_SSL_CA_File      
 
573
Master_SSL_CA_Path      
 
574
Master_SSL_Cert 
 
575
Master_SSL_Cipher       
 
576
Master_SSL_Key  
 
577
Seconds_Behind_Master   #
 
578
Master_SSL_Verify_Server_Cert   No
 
579
Last_IO_Errno   #
 
580
Last_IO_Error   #
 
581
Last_SQL_Errno  1535
 
582
Last_SQL_Error  Table definition on master and slave does not match: Column 0 size mismatch - master has size 2000, test.t1 on slave has size 100. Master's column size should be <= the slave's column size.
 
583
SELECT COUNT(*) FROM t1;
 
584
COUNT(*)
 
585
0
 
586
STOP SLAVE;
 
587
RESET SLAVE;
 
588
RESET MASTER;
 
589
START SLAVE;
 
590
DROP TABLE IF EXISTS t1;
 
591
STOP SLAVE;
 
592
RESET SLAVE;
 
593
CREATE TABLE t1 (a VARCHAR(10));
 
594
CREATE TABLE t1 (a VARCHAR(200));
 
595
RESET MASTER;
 
596
INSERT INTO t1 VALUES ('This is a test.');
 
597
START SLAVE;
 
598
SHOW SLAVE STATUS;
 
599
Slave_IO_State  #
 
600
Master_Host     127.0.0.1
 
601
Master_User     root
 
602
Master_Port     #
 
603
Connect_Retry   1
 
604
Master_Log_File master-bin.000001
 
605
Read_Master_Log_Pos     #
 
606
Relay_Log_File  #
 
607
Relay_Log_Pos   #
 
608
Relay_Master_Log_File   master-bin.000001
 
609
Slave_IO_Running        Yes
 
610
Slave_SQL_Running       No
 
611
Replicate_Do_DB 
 
612
Replicate_Ignore_DB     
 
613
Replicate_Do_Table      
 
614
Replicate_Ignore_Table  #
 
615
Replicate_Wild_Do_Table 
 
616
Replicate_Wild_Ignore_Table     
 
617
Last_Errno      1535
 
618
Last_Error      Table definition on master and slave does not match: Column 0 size mismatch - master has size 200, test.t1 on slave has size 10. Master's column size should be <= the slave's column size.
 
619
Skip_Counter    0
 
620
Exec_Master_Log_Pos     #
 
621
Relay_Log_Space #
 
622
Until_Condition None
 
623
Until_Log_File  
 
624
Until_Log_Pos   0
 
625
Master_SSL_Allowed      No
 
626
Master_SSL_CA_File      
 
627
Master_SSL_CA_Path      
 
628
Master_SSL_Cert 
 
629
Master_SSL_Cipher       
 
630
Master_SSL_Key  
 
631
Seconds_Behind_Master   #
 
632
Master_SSL_Verify_Server_Cert   No
 
633
Last_IO_Errno   #
 
634
Last_IO_Error   #
 
635
Last_SQL_Errno  1535
 
636
Last_SQL_Error  Table definition on master and slave does not match: Column 0 size mismatch - master has size 200, test.t1 on slave has size 10. Master's column size should be <= the slave's column size.
 
637
SELECT COUNT(*) FROM t1;
 
638
COUNT(*)
 
639
0
 
640
STOP SLAVE;
 
641
RESET SLAVE;
 
642
RESET MASTER;
 
643
START SLAVE;
 
644
DROP TABLE IF EXISTS t1;
 
645
STOP SLAVE;
 
646
RESET SLAVE;
 
647
CREATE TABLE t1 (a VARCHAR(1000));
 
648
CREATE TABLE t1 (a VARCHAR(2000));
 
649
RESET MASTER;
 
650
INSERT INTO t1 VALUES ('This is a test.');
 
651
START SLAVE;
 
652
SHOW SLAVE STATUS;
 
653
Slave_IO_State  #
 
654
Master_Host     127.0.0.1
 
655
Master_User     root
 
656
Master_Port     #
 
657
Connect_Retry   1
 
658
Master_Log_File master-bin.000001
 
659
Read_Master_Log_Pos     #
 
660
Relay_Log_File  #
 
661
Relay_Log_Pos   #
 
662
Relay_Master_Log_File   master-bin.000001
 
663
Slave_IO_Running        Yes
 
664
Slave_SQL_Running       No
 
665
Replicate_Do_DB 
 
666
Replicate_Ignore_DB     
 
667
Replicate_Do_Table      
 
668
Replicate_Ignore_Table  #
 
669
Replicate_Wild_Do_Table 
 
670
Replicate_Wild_Ignore_Table     
 
671
Last_Errno      1535
 
672
Last_Error      Table definition on master and slave does not match: Column 0 size mismatch - master has size 2000, test.t1 on slave has size 1000. Master's column size should be <= the slave's column size.
 
673
Skip_Counter    0
 
674
Exec_Master_Log_Pos     #
 
675
Relay_Log_Space #
 
676
Until_Condition None
 
677
Until_Log_File  
 
678
Until_Log_Pos   0
 
679
Master_SSL_Allowed      No
 
680
Master_SSL_CA_File      
 
681
Master_SSL_CA_Path      
 
682
Master_SSL_Cert 
 
683
Master_SSL_Cipher       
 
684
Master_SSL_Key  
 
685
Seconds_Behind_Master   #
 
686
Master_SSL_Verify_Server_Cert   No
 
687
Last_IO_Errno   #
 
688
Last_IO_Error   #
 
689
Last_SQL_Errno  1535
 
690
Last_SQL_Error  Table definition on master and slave does not match: Column 0 size mismatch - master has size 2000, test.t1 on slave has size 1000. Master's column size should be <= the slave's column size.
 
691
SELECT COUNT(*) FROM t1;
 
692
COUNT(*)
 
693
0
 
694
STOP SLAVE;
 
695
RESET SLAVE;
 
696
RESET MASTER;
 
697
START SLAVE;
 
698
Checking MYSQL_TYPE_BLOB fields
 
699
DROP TABLE IF EXISTS t1;
 
700
STOP SLAVE;
 
701
RESET SLAVE;
 
702
CREATE TABLE t1 (a TINYBLOB);
 
703
CREATE TABLE t1 (a LONGBLOB);
 
704
RESET MASTER;
 
705
INSERT INTO t1 VALUES ('This is a test.');
 
706
START SLAVE;
 
707
SHOW SLAVE STATUS;
 
708
Slave_IO_State  #
 
709
Master_Host     127.0.0.1
 
710
Master_User     root
 
711
Master_Port     #
 
712
Connect_Retry   1
 
713
Master_Log_File master-bin.000001
 
714
Read_Master_Log_Pos     #
 
715
Relay_Log_File  #
 
716
Relay_Log_Pos   #
 
717
Relay_Master_Log_File   master-bin.000001
 
718
Slave_IO_Running        Yes
 
719
Slave_SQL_Running       No
 
720
Replicate_Do_DB 
 
721
Replicate_Ignore_DB     
 
722
Replicate_Do_Table      
 
723
Replicate_Ignore_Table  #
 
724
Replicate_Wild_Do_Table 
 
725
Replicate_Wild_Ignore_Table     
 
726
Last_Errno      1535
 
727
Last_Error      Table definition on master and slave does not match: Column 0 size mismatch - master has size 4, test.t1 on slave has size 1. Master's column size should be <= the slave's column size.
 
728
Skip_Counter    0
 
729
Exec_Master_Log_Pos     #
 
730
Relay_Log_Space #
 
731
Until_Condition None
 
732
Until_Log_File  
 
733
Until_Log_Pos   0
 
734
Master_SSL_Allowed      No
 
735
Master_SSL_CA_File      
 
736
Master_SSL_CA_Path      
 
737
Master_SSL_Cert 
 
738
Master_SSL_Cipher       
 
739
Master_SSL_Key  
 
740
Seconds_Behind_Master   #
 
741
Master_SSL_Verify_Server_Cert   No
 
742
Last_IO_Errno   #
 
743
Last_IO_Error   #
 
744
Last_SQL_Errno  1535
 
745
Last_SQL_Error  Table definition on master and slave does not match: Column 0 size mismatch - master has size 4, test.t1 on slave has size 1. Master's column size should be <= the slave's column size.
 
746
SELECT COUNT(*) FROM t1;
 
747
COUNT(*)
 
748
0
 
749
STOP SLAVE;
 
750
RESET SLAVE;
 
751
RESET MASTER;
 
752
START SLAVE;
 
753
*** Cleanup  ***
 
754
DROP TABLE IF EXISTS t1;