summaryrefslogtreecommitdiff
path: root/mysql-test/suite/innodb_zip/r/zip.result
blob: 4f7bb39dc0b03391115c4b60714e6157e77370af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
SET @save_innodb_stats_on_metadata=@@global.innodb_stats_on_metadata;
set session innodb_strict_mode=0;
set global innodb_file_per_table=off;
set global innodb_file_format=`0`;
Warnings:
Warning	131	Using innodb_file_format is deprecated and the parameter may be removed in future releases. See http://dev.mysql.com/doc/refman/5.7/en/innodb-file-format.html
SET @@global.innodb_stats_on_metadata=ON;
create table t0(a int primary key) engine=innodb row_format=compressed;
Warnings:
Warning	1478	InnoDB: ROW_FORMAT=COMPRESSED requires innodb_file_per_table.
Warning	1478	InnoDB: assuming ROW_FORMAT=DYNAMIC.
create table t00(a int primary key) engine=innodb
key_block_size=4 row_format=compressed;
Warnings:
Warning	1478	InnoDB: KEY_BLOCK_SIZE requires innodb_file_per_table.
Warning	1478	InnoDB: KEY_BLOCK_SIZE requires innodb_file_format > Antelope.
Warning	1478	InnoDB: ignoring KEY_BLOCK_SIZE=4.
Warning	1478	InnoDB: ROW_FORMAT=COMPRESSED requires innodb_file_per_table.
Warning	1478	InnoDB: assuming ROW_FORMAT=DYNAMIC.
create table t1(a int primary key) engine=innodb row_format=dynamic;
create table t2(a int primary key) engine=innodb row_format=redundant;
create table t3(a int primary key) engine=innodb row_format=compact;
create table t4(a int primary key) engine=innodb key_block_size=9;
Warnings:
Warning	1478	InnoDB: KEY_BLOCK_SIZE requires innodb_file_per_table.
Warning	1478	InnoDB: KEY_BLOCK_SIZE requires innodb_file_format > Antelope.
Warning	1478	InnoDB: ignoring KEY_BLOCK_SIZE=9.
create table t5(a int primary key) engine=innodb
key_block_size=1 row_format=redundant;
Warnings:
Warning	1478	InnoDB: KEY_BLOCK_SIZE requires innodb_file_per_table.
Warning	1478	InnoDB: KEY_BLOCK_SIZE requires innodb_file_format > Antelope.
Warning	1478	InnoDB: ignoring KEY_BLOCK_SIZE=1.
set global innodb_file_per_table=on;
create table t6(a int primary key) engine=innodb
key_block_size=1 row_format=redundant;
Warnings:
Warning	1478	InnoDB: KEY_BLOCK_SIZE requires innodb_file_format > Antelope.
Warning	1478	InnoDB: ignoring KEY_BLOCK_SIZE=1.
set global innodb_file_format=`1`;
Warnings:
Warning	131	Using innodb_file_format is deprecated and the parameter may be removed in future releases. See http://dev.mysql.com/doc/refman/5.7/en/innodb-file-format.html
create table t7(a int primary key) engine=innodb
key_block_size=1 row_format=redundant;
Warnings:
Warning	1478	InnoDB: ignoring KEY_BLOCK_SIZE=1 unless ROW_FORMAT=COMPRESSED.
create table t8(a int primary key) engine=innodb
key_block_size=1 row_format=fixed;
Warnings:
Warning	1478	InnoDB: ignoring KEY_BLOCK_SIZE=1 unless ROW_FORMAT=COMPRESSED.
Warning	1478	InnoDB: assuming ROW_FORMAT=DYNAMIC.
create table t9(a int primary key) engine=innodb
key_block_size=1 row_format=compact;
Warnings:
Warning	1478	InnoDB: ignoring KEY_BLOCK_SIZE=1 unless ROW_FORMAT=COMPRESSED.
create table t10(a int primary key) engine=innodb
key_block_size=1 row_format=dynamic;
Warnings:
Warning	1478	InnoDB: ignoring KEY_BLOCK_SIZE=1 unless ROW_FORMAT=COMPRESSED.
create table t11(a int primary key) engine=innodb
key_block_size=1 row_format=compressed;
create table t12(a int primary key) engine=innodb
key_block_size=1;
create table t13(a int primary key) engine=innodb
row_format=compressed;
create table t14(a int primary key) engine=innodb key_block_size=9;
Warnings:
Warning	1478	InnoDB: ignoring KEY_BLOCK_SIZE=9.
SELECT table_schema, table_name, row_format, data_length, index_length FROM information_schema.tables WHERE engine='innodb' AND table_schema != 'mysql' AND table_schema != 'sys';
table_schema	table_name	row_format	data_length	index_length
information_schema	COLUMNS	Dynamic	{valid}	0
information_schema	EVENTS	Dynamic	{valid}	0
information_schema	OPTIMIZER_TRACE	Dynamic	{valid}	0
information_schema	PARAMETERS	Dynamic	{valid}	0
information_schema	PARTITIONS	Dynamic	{valid}	0
information_schema	PLUGINS	Dynamic	{valid}	0
information_schema	PROCESSLIST	Dynamic	{valid}	0
information_schema	ROUTINES	Dynamic	{valid}	0
information_schema	TRIGGERS	Dynamic	{valid}	0
information_schema	VIEWS	Dynamic	{valid}	0
test	t0	Dynamic	{valid}	0
test	t00	Dynamic	{valid}	0
test	t1	Dynamic	{valid}	0
test	t10	Dynamic	{valid}	0
test	t11	Compressed	1024	0
test	t12	Compressed	1024	0
test	t13	Compressed	{valid}	0
test	t14	Dynamic	{valid}	0
test	t2	Redundant	{valid}	0
test	t3	Compact	{valid}	0
test	t4	Dynamic	{valid}	0
test	t5	Redundant	{valid}	0
test	t6	Redundant	{valid}	0
test	t7	Redundant	{valid}	0
test	t8	Dynamic	{valid}	0
test	t9	Compact	{valid}	0
drop table t0,t00,t2,t3,t4,t5,t6,t7,t8,t9,t10,t11,t12,t13,t14;
alter table t1 key_block_size=0;
alter table t1 row_format=dynamic;
SELECT table_schema, table_name, row_format, data_length, index_length FROM information_schema.tables WHERE engine='innodb' AND table_schema != 'mysql' AND table_schema != 'sys';
table_schema	table_name	row_format	data_length	index_length
information_schema	COLUMNS	Dynamic	{valid}	0
information_schema	EVENTS	Dynamic	{valid}	0
information_schema	OPTIMIZER_TRACE	Dynamic	{valid}	0
information_schema	PARAMETERS	Dynamic	{valid}	0
information_schema	PARTITIONS	Dynamic	{valid}	0
information_schema	PLUGINS	Dynamic	{valid}	0
information_schema	PROCESSLIST	Dynamic	{valid}	0
information_schema	ROUTINES	Dynamic	{valid}	0
information_schema	TRIGGERS	Dynamic	{valid}	0
information_schema	VIEWS	Dynamic	{valid}	0
test	t1	Dynamic	{valid}	0
alter table t1 row_format=compact;
SELECT table_schema, table_name, row_format, data_length, index_length FROM information_schema.tables WHERE engine='innodb' AND table_schema != 'mysql' AND table_schema != 'sys';
table_schema	table_name	row_format	data_length	index_length
information_schema	COLUMNS	Dynamic	{valid}	0
information_schema	EVENTS	Dynamic	{valid}	0
information_schema	OPTIMIZER_TRACE	Dynamic	{valid}	0
information_schema	PARAMETERS	Dynamic	{valid}	0
information_schema	PARTITIONS	Dynamic	{valid}	0
information_schema	PLUGINS	Dynamic	{valid}	0
information_schema	PROCESSLIST	Dynamic	{valid}	0
information_schema	ROUTINES	Dynamic	{valid}	0
information_schema	TRIGGERS	Dynamic	{valid}	0
information_schema	VIEWS	Dynamic	{valid}	0
test	t1	Compact	{valid}	0
alter table t1 row_format=redundant;
SELECT table_schema, table_name, row_format, data_length, index_length FROM information_schema.tables WHERE engine='innodb' AND table_schema != 'mysql' AND table_schema != 'sys';
table_schema	table_name	row_format	data_length	index_length
information_schema	COLUMNS	Dynamic	{valid}	0
information_schema	EVENTS	Dynamic	{valid}	0
information_schema	OPTIMIZER_TRACE	Dynamic	{valid}	0
information_schema	PARAMETERS	Dynamic	{valid}	0
information_schema	PARTITIONS	Dynamic	{valid}	0
information_schema	PLUGINS	Dynamic	{valid}	0
information_schema	PROCESSLIST	Dynamic	{valid}	0
information_schema	ROUTINES	Dynamic	{valid}	0
information_schema	TRIGGERS	Dynamic	{valid}	0
information_schema	VIEWS	Dynamic	{valid}	0
test	t1	Redundant	{valid}	0
drop table t1;
create table t1(a int not null, b text, index(b(10))) engine=innodb
key_block_size=1;
create table t2(b text)engine=innodb;
insert into t2 values(concat('1abcdefghijklmnopqrstuvwxyz', repeat('A',5000)));
insert into t1 select 1, b from t2;
commit;
begin;
update t1 set b=repeat('B',100);
select a,left(b,40) from t1 natural join t2;
a	left(b,40)
1	1abcdefghijklmnopqrstuvwxyzAAAAAAAAAAAAA
rollback;
select a,left(b,40) from t1 natural join t2;
a	left(b,40)
1	1abcdefghijklmnopqrstuvwxyzAAAAAAAAAAAAA
analyze table t1;
Table	Op	Msg_type	Msg_text
test.t1	analyze	status	OK
analyze table t2;
Table	Op	Msg_type	Msg_text
test.t2	analyze	status	OK
SELECT table_schema, table_name, row_format, data_length, index_length FROM information_schema.tables WHERE engine='innodb' AND table_schema != 'mysql' AND table_schema != 'sys';
table_schema	table_name	row_format	data_length	index_length
information_schema	COLUMNS	Dynamic	{valid}	0
information_schema	EVENTS	Dynamic	{valid}	0
information_schema	OPTIMIZER_TRACE	Dynamic	{valid}	0
information_schema	PARAMETERS	Dynamic	{valid}	0
information_schema	PARTITIONS	Dynamic	{valid}	0
information_schema	PLUGINS	Dynamic	{valid}	0
information_schema	PROCESSLIST	Dynamic	{valid}	0
information_schema	ROUTINES	Dynamic	{valid}	0
information_schema	TRIGGERS	Dynamic	{valid}	0
information_schema	VIEWS	Dynamic	{valid}	0
test	t1	Compressed	2048	1024
test	t2	Dynamic	{valid}	0
drop table t1,t2;
create table t1( c1 int not null, c2 blob, c3 blob, c4 blob,
primary key(c1, c2(22), c3(22)))
engine = innodb row_format = dynamic;
begin;
insert into t1 values(1, repeat('A', 20000), repeat('B', 20000),
repeat('C', 20000));
update t1 set c3 = repeat('D', 20000) where c1 = 1;
commit;
select count(*) from t1 where c2 = repeat('A', 20000);
count(*)
1
select count(*) from t1 where c3 = repeat('D', 20000);
count(*)
1
select count(*) from t1 where c4 = repeat('C', 20000);
count(*)
1
update t1 set c3 = repeat('E', 20000) where c1 = 1;
drop table t1;
set global innodb_file_format=`0`;
Warnings:
Warning	131	Using innodb_file_format is deprecated and the parameter may be removed in future releases. See http://dev.mysql.com/doc/refman/5.7/en/innodb-file-format.html
select @@innodb_file_format;
@@innodb_file_format
Antelope
set global innodb_file_format=`1`;
Warnings:
Warning	131	Using innodb_file_format is deprecated and the parameter may be removed in future releases. See http://dev.mysql.com/doc/refman/5.7/en/innodb-file-format.html
select @@innodb_file_format;
@@innodb_file_format
Barracuda
set global innodb_file_format=`2`;
ERROR 42000: Variable 'innodb_file_format' can't be set to the value of '2'
set global innodb_file_format=`-1`;
ERROR 42000: Variable 'innodb_file_format' can't be set to the value of '-1'
set global innodb_file_format=`Antelope`;
Warnings:
Warning	131	Using innodb_file_format is deprecated and the parameter may be removed in future releases. See http://dev.mysql.com/doc/refman/5.7/en/innodb-file-format.html
set global innodb_file_format=`Barracuda`;
Warnings:
Warning	131	Using innodb_file_format is deprecated and the parameter may be removed in future releases. See http://dev.mysql.com/doc/refman/5.7/en/innodb-file-format.html
set global innodb_file_format=`Cheetah`;
ERROR 42000: Variable 'innodb_file_format' can't be set to the value of 'Cheetah'
set global innodb_file_format=`abc`;
ERROR 42000: Variable 'innodb_file_format' can't be set to the value of 'abc'
set global innodb_file_format=`1a`;
ERROR 42000: Variable 'innodb_file_format' can't be set to the value of '1a'
set global innodb_file_format=``;
ERROR 42000: Variable 'innodb_file_format' can't be set to the value of ''
set global innodb_file_per_table = on;
set global innodb_file_format = `1`;
Warnings:
Warning	131	Using innodb_file_format is deprecated and the parameter may be removed in future releases. See http://dev.mysql.com/doc/refman/5.7/en/innodb-file-format.html
set innodb_strict_mode = off;
create table t1 (id int primary key) engine = innodb key_block_size = 0;
drop table t1;
set innodb_strict_mode = on;
create table t1 (id int primary key) engine = innodb key_block_size = 0;
create table t2 (id int primary key) engine = innodb key_block_size = 9;
ERROR HY000: Table storage engine for 't2' doesn't have this option
show warnings;
Level	Code	Message
Warning	1478	InnoDB: invalid KEY_BLOCK_SIZE = 9. Valid values are [1, 2, 4, 8, 16]
Error	1031	Table storage engine for 't2' doesn't have this option
create table t3 (id int primary key) engine = innodb key_block_size = 1;
create table t4 (id int primary key) engine = innodb key_block_size = 2;
create table t5 (id int primary key) engine = innodb key_block_size = 4;
create table t8 (id int primary key) engine = innodb row_format = compressed;
create table t9 (id int primary key) engine = innodb row_format = dynamic;
create table t10(id int primary key) engine = innodb row_format = compact;
create table t11(id int primary key) engine = innodb row_format = redundant;
SELECT table_schema, table_name, row_format, data_length, index_length FROM information_schema.tables WHERE engine='innodb' AND table_schema != 'mysql' AND table_schema != 'sys';
table_schema	table_name	row_format	data_length	index_length
information_schema	COLUMNS	Dynamic	{valid}	0
information_schema	EVENTS	Dynamic	{valid}	0
information_schema	OPTIMIZER_TRACE	Dynamic	{valid}	0
information_schema	PARAMETERS	Dynamic	{valid}	0
information_schema	PARTITIONS	Dynamic	{valid}	0
information_schema	PLUGINS	Dynamic	{valid}	0
information_schema	PROCESSLIST	Dynamic	{valid}	0
information_schema	ROUTINES	Dynamic	{valid}	0
information_schema	TRIGGERS	Dynamic	{valid}	0
information_schema	VIEWS	Dynamic	{valid}	0
test	t1	Dynamic	{valid}	0
test	t10	Compact	{valid}	0
test	t11	Redundant	{valid}	0
test	t3	Compressed	1024	0
test	t4	Compressed	{valid}	0
test	t5	Compressed	{valid}	0
test	t8	Compressed	{valid}	0
test	t9	Dynamic	{valid}	0
drop table t1, t3, t4, t5, t8, t9, t10, t11;
create table t1 (id int primary key) engine = innodb
key_block_size = 4 row_format = compressed;
create table t2 (id int primary key) engine = innodb
key_block_size = 4 row_format = redundant;
ERROR HY000: Table storage engine for 't2' doesn't have this option
show warnings;
Level	Code	Message
Warning	1478	InnoDB: cannot specify ROW_FORMAT = REDUNDANT with KEY_BLOCK_SIZE.
Error	1031	Table storage engine for 't2' doesn't have this option
create table t3 (id int primary key) engine = innodb
key_block_size = 4 row_format = compact;
ERROR HY000: Table storage engine for 't3' doesn't have this option
show warnings;
Level	Code	Message
Warning	1478	InnoDB: cannot specify ROW_FORMAT = COMPACT with KEY_BLOCK_SIZE.
Error	1031	Table storage engine for 't3' doesn't have this option
create table t4 (id int primary key) engine = innodb
key_block_size = 4 row_format = dynamic;
ERROR HY000: Table storage engine for 't4' doesn't have this option
show warnings;
Level	Code	Message
Warning	1478	InnoDB: cannot specify ROW_FORMAT = DYNAMIC with KEY_BLOCK_SIZE.
Error	1031	Table storage engine for 't4' doesn't have this option
create table t5 (id int primary key) engine = innodb
key_block_size = 4 row_format = default;
SELECT table_schema, table_name, row_format, data_length, index_length FROM information_schema.tables WHERE engine='innodb' AND table_schema != 'mysql' AND table_schema != 'sys';
table_schema	table_name	row_format	data_length	index_length
information_schema	COLUMNS	Dynamic	{valid}	0
information_schema	EVENTS	Dynamic	{valid}	0
information_schema	OPTIMIZER_TRACE	Dynamic	{valid}	0
information_schema	PARAMETERS	Dynamic	{valid}	0
information_schema	PARTITIONS	Dynamic	{valid}	0
information_schema	PLUGINS	Dynamic	{valid}	0
information_schema	PROCESSLIST	Dynamic	{valid}	0
information_schema	ROUTINES	Dynamic	{valid}	0
information_schema	TRIGGERS	Dynamic	{valid}	0
information_schema	VIEWS	Dynamic	{valid}	0
test	t1	Compressed	{valid}	0
test	t5	Compressed	{valid}	0
drop table t1, t5;
create table t1 (id int primary key) engine = innodb
key_block_size = 9 row_format = redundant;
ERROR HY000: Table storage engine for 't1' doesn't have this option
show warnings;
Level	Code	Message
Warning	1478	InnoDB: invalid KEY_BLOCK_SIZE = 9. Valid values are [1, 2, 4, 8, 16]
Warning	1478	InnoDB: cannot specify ROW_FORMAT = REDUNDANT with KEY_BLOCK_SIZE.
Error	1031	Table storage engine for 't1' doesn't have this option
create table t2 (id int primary key) engine = innodb
key_block_size = 9 row_format = compact;
ERROR HY000: Table storage engine for 't2' doesn't have this option
show warnings;
Level	Code	Message
Warning	1478	InnoDB: invalid KEY_BLOCK_SIZE = 9. Valid values are [1, 2, 4, 8, 16]
Warning	1478	InnoDB: cannot specify ROW_FORMAT = COMPACT with KEY_BLOCK_SIZE.
Error	1031	Table storage engine for 't2' doesn't have this option
create table t2 (id int primary key) engine = innodb
key_block_size = 9 row_format = dynamic;
ERROR HY000: Table storage engine for 't2' doesn't have this option
show warnings;
Level	Code	Message
Warning	1478	InnoDB: invalid KEY_BLOCK_SIZE = 9. Valid values are [1, 2, 4, 8, 16]
Warning	1478	InnoDB: cannot specify ROW_FORMAT = DYNAMIC with KEY_BLOCK_SIZE.
Error	1031	Table storage engine for 't2' doesn't have this option
SELECT table_schema, table_name, row_format, data_length, index_length FROM information_schema.tables WHERE engine='innodb' AND table_schema != 'mysql' AND table_schema != 'sys';
table_schema	table_name	row_format	data_length	index_length
information_schema	COLUMNS	Dynamic	{valid}	0
information_schema	EVENTS	Dynamic	{valid}	0
information_schema	OPTIMIZER_TRACE	Dynamic	{valid}	0
information_schema	PARAMETERS	Dynamic	{valid}	0
information_schema	PARTITIONS	Dynamic	{valid}	0
information_schema	PLUGINS	Dynamic	{valid}	0
information_schema	PROCESSLIST	Dynamic	{valid}	0
information_schema	ROUTINES	Dynamic	{valid}	0
information_schema	TRIGGERS	Dynamic	{valid}	0
information_schema	VIEWS	Dynamic	{valid}	0
set global innodb_file_per_table = off;
create table t1 (id int primary key) engine = innodb key_block_size = 1;
ERROR HY000: Table storage engine for 't1' doesn't have this option
show warnings;
Level	Code	Message
Warning	1478	InnoDB: KEY_BLOCK_SIZE requires innodb_file_per_table.
Error	1031	Table storage engine for 't1' doesn't have this option
create table t2 (id int primary key) engine = innodb key_block_size = 2;
ERROR HY000: Table storage engine for 't2' doesn't have this option
show warnings;
Level	Code	Message
Warning	1478	InnoDB: KEY_BLOCK_SIZE requires innodb_file_per_table.
Error	1031	Table storage engine for 't2' doesn't have this option
create table t3 (id int primary key) engine = innodb key_block_size = 4;
ERROR HY000: Table storage engine for 't3' doesn't have this option
show warnings;
Level	Code	Message
Warning	1478	InnoDB: KEY_BLOCK_SIZE requires innodb_file_per_table.
Error	1031	Table storage engine for 't3' doesn't have this option
create table t6 (id int primary key) engine = innodb row_format = compressed;
ERROR HY000: Table storage engine for 't6' doesn't have this option
show warnings;
Level	Code	Message
Warning	1478	InnoDB: ROW_FORMAT=COMPRESSED requires innodb_file_per_table.
Error	1031	Table storage engine for 't6' doesn't have this option
create table t7 (id int primary key) engine = innodb row_format = dynamic;
drop table t7;
create table t8 (id int primary key) engine = innodb row_format = compact;
create table t9 (id int primary key) engine = innodb row_format = redundant;
SELECT table_schema, table_name, row_format, data_length, index_length FROM information_schema.tables WHERE engine='innodb' AND table_schema != 'mysql' AND table_schema != 'sys';
table_schema	table_name	row_format	data_length	index_length
information_schema	COLUMNS	Dynamic	{valid}	0
information_schema	EVENTS	Dynamic	{valid}	0
information_schema	OPTIMIZER_TRACE	Dynamic	{valid}	0
information_schema	PARAMETERS	Dynamic	{valid}	0
information_schema	PARTITIONS	Dynamic	{valid}	0
information_schema	PLUGINS	Dynamic	{valid}	0
information_schema	PROCESSLIST	Dynamic	{valid}	0
information_schema	ROUTINES	Dynamic	{valid}	0
information_schema	TRIGGERS	Dynamic	{valid}	0
information_schema	VIEWS	Dynamic	{valid}	0
test	t8	Compact	{valid}	0
test	t9	Redundant	{valid}	0
drop table t8, t9;
set global innodb_file_per_table = on;
set global innodb_file_format = `0`;
Warnings:
Warning	131	Using innodb_file_format is deprecated and the parameter may be removed in future releases. See http://dev.mysql.com/doc/refman/5.7/en/innodb-file-format.html
create table t1 (id int primary key) engine = innodb key_block_size = 1;
ERROR HY000: Table storage engine for 't1' doesn't have this option
show warnings;
Level	Code	Message
Warning	1478	InnoDB: KEY_BLOCK_SIZE requires innodb_file_format > Antelope.
Error	1031	Table storage engine for 't1' doesn't have this option
create table t2 (id int primary key) engine = innodb key_block_size = 2;
ERROR HY000: Table storage engine for 't2' doesn't have this option
show warnings;
Level	Code	Message
Warning	1478	InnoDB: KEY_BLOCK_SIZE requires innodb_file_format > Antelope.
Error	1031	Table storage engine for 't2' doesn't have this option
create table t3 (id int primary key) engine = innodb key_block_size = 4;
ERROR HY000: Table storage engine for 't3' doesn't have this option
show warnings;
Level	Code	Message
Warning	1478	InnoDB: KEY_BLOCK_SIZE requires innodb_file_format > Antelope.
Error	1031	Table storage engine for 't3' doesn't have this option
create table t6 (id int primary key) engine = innodb row_format = compressed;
ERROR HY000: Table storage engine for 't6' doesn't have this option
show warnings;
Level	Code	Message
Warning	1478	InnoDB: ROW_FORMAT=COMPRESSED requires innodb_file_format > Antelope.
Error	1031	Table storage engine for 't6' doesn't have this option
create table t7 (id int primary key) engine = innodb row_format = dynamic;
drop table t7;
create table t8 (id int primary key) engine = innodb row_format = compact;
create table t9 (id int primary key) engine = innodb row_format = redundant;
SELECT table_schema, table_name, row_format, data_length, index_length FROM information_schema.tables WHERE engine='innodb' AND table_schema != 'mysql' AND table_schema != 'sys';
table_schema	table_name	row_format	data_length	index_length
information_schema	COLUMNS	Dynamic	{valid}	0
information_schema	EVENTS	Dynamic	{valid}	0
information_schema	OPTIMIZER_TRACE	Dynamic	{valid}	0
information_schema	PARAMETERS	Dynamic	{valid}	0
information_schema	PARTITIONS	Dynamic	{valid}	0
information_schema	PLUGINS	Dynamic	{valid}	0
information_schema	PROCESSLIST	Dynamic	{valid}	0
information_schema	ROUTINES	Dynamic	{valid}	0
information_schema	TRIGGERS	Dynamic	{valid}	0
information_schema	VIEWS	Dynamic	{valid}	0
test	t8	Compact	{valid}	0
test	t9	Redundant	{valid}	0
drop table t8, t9;
set global innodb_file_per_table=1;
set global innodb_file_per_table=on;
set global innodb_file_format=`Barracuda`;
Warnings:
Warning	131	Using innodb_file_format is deprecated and the parameter may be removed in future releases. See http://dev.mysql.com/doc/refman/5.7/en/innodb-file-format.html
set global innodb_file_format_max=`Antelope`;
Warnings:
Warning	131	Using innodb_file_format_max is deprecated and the parameter may be removed in future releases. See http://dev.mysql.com/doc/refman/5.7/en/innodb-file-format.html
create table normal_table (
c1 int
) engine = innodb;
select @@innodb_file_format_max;
@@innodb_file_format_max
Barracuda
create table zip_table (
c1 int
) engine = innodb key_block_size = 4;
select @@innodb_file_format_max;
@@innodb_file_format_max
Barracuda
set global innodb_file_format_max=`Antelope`;
Warnings:
Warning	131	Using innodb_file_format_max is deprecated and the parameter may be removed in future releases. See http://dev.mysql.com/doc/refman/5.7/en/innodb-file-format.html
select @@innodb_file_format_max;
@@innodb_file_format_max
Antelope
show table status;
select @@innodb_file_format_max;
@@innodb_file_format_max
Barracuda
drop table normal_table, zip_table;