mirror of
https://github.com/MariaDB/server.git
synced 2025-01-21 14:32:34 +01:00
ace10f32a0
------------------------------------------------------------------------ r3036 | marko | 2008-11-12 12:34:30 +0200 (Wed, 12 Nov 2008) | 4 lines branches/zip: dtuple_validate(): When UNIV_DEBUG_VALGRIND is defined, rely solely on the UNIV_MEM_ASSERT_RW() check and disable the for loop that would only cause additional noise. ------------------------------------------------------------------------ r3037 | marko | 2008-11-12 13:52:57 +0200 (Wed, 12 Nov 2008) | 6 lines branches/zip: row_vers_impl_x_locked_off_kernel(): Remove compilation warnings about prev_trx_id and vers_del being possibly uninitialized, by handling the case prev_version == NULL in a single if block. rb://45 approved by Inaam Rana. ------------------------------------------------------------------------ r3131 | michael | 2008-11-17 14:56:56 +0200 (Mon, 17 Nov 2008) | 9 lines branches/zip: rb://53 Improve innodb_supports_xa system variable handling and reduces the number of retrievals of the value from MySQL. Approved by: Marko, over IM ------------------------------------------------------------------------ r3132 | michael | 2008-11-17 16:02:01 +0200 (Mon, 17 Nov 2008) | 5 lines branches/zip: rb://53 Final version of rb://53, fixes the styling of a comment, makes the definition and the declaration of thd_supports_xa() identical commentwise. ------------------------------------------------------------------------ r3141 | marko | 2008-11-19 16:39:55 +0200 (Wed, 19 Nov 2008) | 1 line branches/zip: buf_LRU_free_block(): Clarify the function comment. ------------------------------------------------------------------------ r3144 | marko | 2008-11-20 11:39:49 +0200 (Thu, 20 Nov 2008) | 2 lines branches/zip: rec_get_nth_field_offs_old(): Add UNIV_UNLIKELY hints to assertion-like tests. ------------------------------------------------------------------------ r3145 | marko | 2008-11-20 12:22:40 +0200 (Thu, 20 Nov 2008) | 20 lines branches/zip: Always check for "row too large" when executing SQL to create an index or table. We have to skip this check when loading table definitions from the data dictionary, because we could otherwise refuse to load old tables (even uncompressed ones). This addresses Issue #119. The first "row too large" check was implemented in MySQL 5.0.3 to address MySQL Bug #5682. In the InnoDB Plugin 1.0.2, a more accurate check was implemented in innodb_strict_mode. We now make the check unconditional. dict_create_index_step(): Pass strict=TRUE to dict_index_add_to_cache(). trx_is_strict(), thd_is_strict(): Remove. innodb-zip.test: Test in innodb_strict_mode=OFF. innodb_bug36169.test: Ensure that none of the tables can be created. rb://56 approved by Sunny Bains. ------------------------------------------------------------------------ r3148 | marko | 2008-11-20 13:27:27 +0200 (Thu, 20 Nov 2008) | 3 lines branches/zip: rec_print_old(), rec_print_comp(): Dump each field in a separate line, so that the dumps can be read and compared more easily. ------------------------------------------------------------------------
421 lines
17 KiB
Text
421 lines
17 KiB
Text
set global innodb_file_per_table=off;
|
|
set global innodb_file_format=`0`;
|
|
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=COMPACT.
|
|
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=COMPACT.
|
|
create table t1(a int primary key) engine=innodb row_format=dynamic;
|
|
Warnings:
|
|
Warning 1478 InnoDB: ROW_FORMAT=DYNAMIC requires innodb_file_per_table.
|
|
Warning 1478 InnoDB: assuming ROW_FORMAT=COMPACT.
|
|
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`;
|
|
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=COMPACT.
|
|
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
|
|
FROM information_schema.tables WHERE engine='innodb';
|
|
table_schema table_name row_format
|
|
test t0 Compact
|
|
test t00 Compact
|
|
test t1 Compact
|
|
test t10 Dynamic
|
|
test t11 Compressed
|
|
test t12 Compressed
|
|
test t13 Compressed
|
|
test t14 Compact
|
|
test t2 Redundant
|
|
test t3 Compact
|
|
test t4 Compact
|
|
test t5 Redundant
|
|
test t6 Redundant
|
|
test t7 Redundant
|
|
test t8 Compact
|
|
test t9 Compact
|
|
drop table t0,t00,t2,t3,t4,t5,t6,t7,t8,t9,t10,t11,t12,t13,t14;
|
|
alter table t1 key_block_size=0;
|
|
Warnings:
|
|
Warning 1478 InnoDB: ignoring KEY_BLOCK_SIZE=0.
|
|
alter table t1 row_format=dynamic;
|
|
SELECT table_schema, table_name, row_format
|
|
FROM information_schema.tables WHERE engine='innodb';
|
|
table_schema table_name row_format
|
|
test t1 Dynamic
|
|
alter table t1 row_format=compact;
|
|
SELECT table_schema, table_name, row_format
|
|
FROM information_schema.tables WHERE engine='innodb';
|
|
table_schema table_name row_format
|
|
test t1 Compact
|
|
alter table t1 row_format=redundant;
|
|
SELECT table_schema, table_name, row_format
|
|
FROM information_schema.tables WHERE engine='innodb';
|
|
table_schema table_name row_format
|
|
test t1 Redundant
|
|
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
|
|
SELECT table_schema, table_name, row_format
|
|
FROM information_schema.tables WHERE engine='innodb';
|
|
table_schema table_name row_format
|
|
test t1 Compressed
|
|
test t2 Compact
|
|
drop table t1,t2;
|
|
SET SESSION innodb_strict_mode = off;
|
|
CREATE TABLE t1(
|
|
c TEXT NOT NULL, d TEXT NOT NULL,
|
|
PRIMARY KEY (c(767),d(767)))
|
|
ENGINE=InnoDB ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=1 CHARSET=ASCII;
|
|
ERROR 42000: Row size too large. The maximum row size for the used table type, not counting BLOBs, is 8126. You have to change some columns to TEXT or BLOBs
|
|
CREATE TABLE t1(
|
|
c TEXT NOT NULL, d TEXT NOT NULL,
|
|
PRIMARY KEY (c(767),d(767)))
|
|
ENGINE=InnoDB ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=2 CHARSET=ASCII;
|
|
ERROR 42000: Row size too large. The maximum row size for the used table type, not counting BLOBs, is 8126. You have to change some columns to TEXT or BLOBs
|
|
CREATE TABLE t1(
|
|
c TEXT NOT NULL, d TEXT NOT NULL,
|
|
PRIMARY KEY (c(767),d(767)))
|
|
ENGINE=InnoDB ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=4 CHARSET=ASCII;
|
|
drop table t1;
|
|
CREATE TABLE t1(c TEXT, PRIMARY KEY (c(440)))
|
|
ENGINE=InnoDB ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=1 CHARSET=ASCII;
|
|
ERROR 42000: Row size too large. The maximum row size for the used table type, not counting BLOBs, is 8126. You have to change some columns to TEXT or BLOBs
|
|
CREATE TABLE t1(c TEXT, PRIMARY KEY (c(439)))
|
|
ENGINE=InnoDB ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=1 CHARSET=ASCII;
|
|
INSERT INTO t1 VALUES(REPEAT('A',512)),(REPEAT('B',512));
|
|
DROP TABLE t1;
|
|
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`;
|
|
select @@innodb_file_format;
|
|
@@innodb_file_format
|
|
Antelope
|
|
set global innodb_file_format=`1`;
|
|
select @@innodb_file_format;
|
|
@@innodb_file_format
|
|
Barracuda
|
|
set global innodb_file_format=`2`;
|
|
ERROR HY000: Incorrect arguments to SET
|
|
set global innodb_file_format=`-1`;
|
|
ERROR HY000: Incorrect arguments to SET
|
|
set global innodb_file_format=`Antelope`;
|
|
set global innodb_file_format=`Barracuda`;
|
|
set global innodb_file_format=`Cheetah`;
|
|
ERROR HY000: Incorrect arguments to SET
|
|
set global innodb_file_format=`abc`;
|
|
ERROR HY000: Incorrect arguments to SET
|
|
set global innodb_file_format=`1a`;
|
|
ERROR HY000: Incorrect arguments to SET
|
|
set global innodb_file_format=``;
|
|
ERROR HY000: Incorrect arguments to SET
|
|
set global innodb_file_per_table = on;
|
|
set global innodb_file_format = `1`;
|
|
set innodb_strict_mode = off;
|
|
create table t1 (id int primary key) engine = innodb key_block_size = 0;
|
|
Warnings:
|
|
Warning 1478 InnoDB: ignoring 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;
|
|
ERROR HY000: Can't create table 'test.t1' (errno: 1478)
|
|
show errors;
|
|
Level Code Message
|
|
Error 1478 InnoDB: invalid KEY_BLOCK_SIZE = 0. Valid values are [1, 2, 4, 8, 16]
|
|
Error 1005 Can't create table 'test.t1' (errno: 1478)
|
|
create table t2 (id int primary key) engine = innodb key_block_size = 9;
|
|
ERROR HY000: Can't create table 'test.t2' (errno: 1478)
|
|
show errors;
|
|
Level Code Message
|
|
Error 1478 InnoDB: invalid KEY_BLOCK_SIZE = 9. Valid values are [1, 2, 4, 8, 16]
|
|
Error 1005 Can't create table 'test.t2' (errno: 1478)
|
|
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 t6 (id int primary key) engine = innodb key_block_size = 8;
|
|
create table t7 (id int primary key) engine = innodb key_block_size = 16;
|
|
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
|
|
FROM information_schema.tables WHERE engine='innodb';
|
|
table_schema table_name row_format
|
|
test t10 Compact
|
|
test t11 Redundant
|
|
test t3 Compressed
|
|
test t4 Compressed
|
|
test t5 Compressed
|
|
test t6 Compressed
|
|
test t7 Compressed
|
|
test t8 Compressed
|
|
test t9 Dynamic
|
|
drop table t3, t4, t5, t6, t7, t8, t9, t10, t11;
|
|
create table t1 (id int primary key) engine = innodb
|
|
key_block_size = 8 row_format = compressed;
|
|
create table t2 (id int primary key) engine = innodb
|
|
key_block_size = 8 row_format = redundant;
|
|
ERROR HY000: Can't create table 'test.t2' (errno: 1478)
|
|
show errors;
|
|
Level Code Message
|
|
Error 1478 InnoDB: cannot specify ROW_FORMAT = REDUNDANT with KEY_BLOCK_SIZE.
|
|
Error 1005 Can't create table 'test.t2' (errno: 1478)
|
|
create table t3 (id int primary key) engine = innodb
|
|
key_block_size = 8 row_format = compact;
|
|
ERROR HY000: Can't create table 'test.t3' (errno: 1478)
|
|
show errors;
|
|
Level Code Message
|
|
Error 1478 InnoDB: cannot specify ROW_FORMAT = COMPACT with KEY_BLOCK_SIZE.
|
|
Error 1005 Can't create table 'test.t3' (errno: 1478)
|
|
create table t4 (id int primary key) engine = innodb
|
|
key_block_size = 8 row_format = dynamic;
|
|
ERROR HY000: Can't create table 'test.t4' (errno: 1478)
|
|
show errors;
|
|
Level Code Message
|
|
Error 1478 InnoDB: cannot specify ROW_FORMAT = DYNAMIC with KEY_BLOCK_SIZE.
|
|
Error 1005 Can't create table 'test.t4' (errno: 1478)
|
|
create table t5 (id int primary key) engine = innodb
|
|
key_block_size = 8 row_format = default;
|
|
ERROR HY000: Can't create table 'test.t5' (errno: 1478)
|
|
show errors;
|
|
Level Code Message
|
|
Error 1478 InnoDB: cannot specify ROW_FORMAT = COMPACT with KEY_BLOCK_SIZE.
|
|
Error 1005 Can't create table 'test.t5' (errno: 1478)
|
|
SELECT table_schema, table_name, row_format
|
|
FROM information_schema.tables WHERE engine='innodb';
|
|
table_schema table_name row_format
|
|
test t1 Compressed
|
|
drop table t1;
|
|
create table t1 (id int primary key) engine = innodb
|
|
key_block_size = 9 row_format = redundant;
|
|
ERROR HY000: Can't create table 'test.t1' (errno: 1478)
|
|
show errors;
|
|
Level Code Message
|
|
Error 1478 InnoDB: invalid KEY_BLOCK_SIZE = 9. Valid values are [1, 2, 4, 8, 16]
|
|
Error 1478 InnoDB: cannot specify ROW_FORMAT = REDUNDANT with KEY_BLOCK_SIZE.
|
|
Error 1005 Can't create table 'test.t1' (errno: 1478)
|
|
create table t2 (id int primary key) engine = innodb
|
|
key_block_size = 9 row_format = compact;
|
|
ERROR HY000: Can't create table 'test.t2' (errno: 1478)
|
|
show errors;
|
|
Level Code Message
|
|
Error 1478 InnoDB: invalid KEY_BLOCK_SIZE = 9. Valid values are [1, 2, 4, 8, 16]
|
|
Error 1478 InnoDB: cannot specify ROW_FORMAT = COMPACT with KEY_BLOCK_SIZE.
|
|
Error 1005 Can't create table 'test.t2' (errno: 1478)
|
|
create table t2 (id int primary key) engine = innodb
|
|
key_block_size = 9 row_format = dynamic;
|
|
ERROR HY000: Can't create table 'test.t2' (errno: 1478)
|
|
show errors;
|
|
Level Code Message
|
|
Error 1478 InnoDB: invalid KEY_BLOCK_SIZE = 9. Valid values are [1, 2, 4, 8, 16]
|
|
Error 1478 InnoDB: cannot specify ROW_FORMAT = DYNAMIC with KEY_BLOCK_SIZE.
|
|
Error 1005 Can't create table 'test.t2' (errno: 1478)
|
|
SELECT table_schema, table_name, row_format
|
|
FROM information_schema.tables WHERE engine='innodb';
|
|
table_schema table_name row_format
|
|
set global innodb_file_per_table = off;
|
|
create table t1 (id int primary key) engine = innodb key_block_size = 1;
|
|
ERROR HY000: Can't create table 'test.t1' (errno: 1478)
|
|
show errors;
|
|
Level Code Message
|
|
Error 1478 InnoDB: KEY_BLOCK_SIZE requires innodb_file_per_table.
|
|
Error 1005 Can't create table 'test.t1' (errno: 1478)
|
|
create table t2 (id int primary key) engine = innodb key_block_size = 2;
|
|
ERROR HY000: Can't create table 'test.t2' (errno: 1478)
|
|
show errors;
|
|
Level Code Message
|
|
Error 1478 InnoDB: KEY_BLOCK_SIZE requires innodb_file_per_table.
|
|
Error 1005 Can't create table 'test.t2' (errno: 1478)
|
|
create table t3 (id int primary key) engine = innodb key_block_size = 4;
|
|
ERROR HY000: Can't create table 'test.t3' (errno: 1478)
|
|
show errors;
|
|
Level Code Message
|
|
Error 1478 InnoDB: KEY_BLOCK_SIZE requires innodb_file_per_table.
|
|
Error 1005 Can't create table 'test.t3' (errno: 1478)
|
|
create table t4 (id int primary key) engine = innodb key_block_size = 8;
|
|
ERROR HY000: Can't create table 'test.t4' (errno: 1478)
|
|
show errors;
|
|
Level Code Message
|
|
Error 1478 InnoDB: KEY_BLOCK_SIZE requires innodb_file_per_table.
|
|
Error 1005 Can't create table 'test.t4' (errno: 1478)
|
|
create table t5 (id int primary key) engine = innodb key_block_size = 16;
|
|
ERROR HY000: Can't create table 'test.t5' (errno: 1478)
|
|
show errors;
|
|
Level Code Message
|
|
Error 1478 InnoDB: KEY_BLOCK_SIZE requires innodb_file_per_table.
|
|
Error 1005 Can't create table 'test.t5' (errno: 1478)
|
|
create table t6 (id int primary key) engine = innodb row_format = compressed;
|
|
ERROR HY000: Can't create table 'test.t6' (errno: 1478)
|
|
show errors;
|
|
Level Code Message
|
|
Error 1478 InnoDB: ROW_FORMAT=COMPRESSED requires innodb_file_per_table.
|
|
Error 1005 Can't create table 'test.t6' (errno: 1478)
|
|
create table t7 (id int primary key) engine = innodb row_format = dynamic;
|
|
ERROR HY000: Can't create table 'test.t7' (errno: 1478)
|
|
show errors;
|
|
Level Code Message
|
|
Error 1478 InnoDB: ROW_FORMAT=DYNAMIC requires innodb_file_per_table.
|
|
Error 1005 Can't create table 'test.t7' (errno: 1478)
|
|
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
|
|
FROM information_schema.tables WHERE engine='innodb';
|
|
table_schema table_name row_format
|
|
test t8 Compact
|
|
test t9 Redundant
|
|
drop table t8, t9;
|
|
set global innodb_file_per_table = on;
|
|
set global innodb_file_format = `0`;
|
|
create table t1 (id int primary key) engine = innodb key_block_size = 1;
|
|
ERROR HY000: Can't create table 'test.t1' (errno: 1478)
|
|
show errors;
|
|
Level Code Message
|
|
Error 1478 InnoDB: KEY_BLOCK_SIZE requires innodb_file_format > Antelope.
|
|
Error 1005 Can't create table 'test.t1' (errno: 1478)
|
|
create table t2 (id int primary key) engine = innodb key_block_size = 2;
|
|
ERROR HY000: Can't create table 'test.t2' (errno: 1478)
|
|
show errors;
|
|
Level Code Message
|
|
Error 1478 InnoDB: KEY_BLOCK_SIZE requires innodb_file_format > Antelope.
|
|
Error 1005 Can't create table 'test.t2' (errno: 1478)
|
|
create table t3 (id int primary key) engine = innodb key_block_size = 4;
|
|
ERROR HY000: Can't create table 'test.t3' (errno: 1478)
|
|
show errors;
|
|
Level Code Message
|
|
Error 1478 InnoDB: KEY_BLOCK_SIZE requires innodb_file_format > Antelope.
|
|
Error 1005 Can't create table 'test.t3' (errno: 1478)
|
|
create table t4 (id int primary key) engine = innodb key_block_size = 8;
|
|
ERROR HY000: Can't create table 'test.t4' (errno: 1478)
|
|
show errors;
|
|
Level Code Message
|
|
Error 1478 InnoDB: KEY_BLOCK_SIZE requires innodb_file_format > Antelope.
|
|
Error 1005 Can't create table 'test.t4' (errno: 1478)
|
|
create table t5 (id int primary key) engine = innodb key_block_size = 16;
|
|
ERROR HY000: Can't create table 'test.t5' (errno: 1478)
|
|
show errors;
|
|
Level Code Message
|
|
Error 1478 InnoDB: KEY_BLOCK_SIZE requires innodb_file_format > Antelope.
|
|
Error 1005 Can't create table 'test.t5' (errno: 1478)
|
|
create table t6 (id int primary key) engine = innodb row_format = compressed;
|
|
ERROR HY000: Can't create table 'test.t6' (errno: 1478)
|
|
show errors;
|
|
Level Code Message
|
|
Error 1478 InnoDB: ROW_FORMAT=COMPRESSED requires innodb_file_format > Antelope.
|
|
Error 1005 Can't create table 'test.t6' (errno: 1478)
|
|
create table t7 (id int primary key) engine = innodb row_format = dynamic;
|
|
ERROR HY000: Can't create table 'test.t7' (errno: 1478)
|
|
show errors;
|
|
Level Code Message
|
|
Error 1478 InnoDB: ROW_FORMAT=DYNAMIC requires innodb_file_format > Antelope.
|
|
Error 1005 Can't create table 'test.t7' (errno: 1478)
|
|
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
|
|
FROM information_schema.tables WHERE engine='innodb';
|
|
table_schema table_name row_format
|
|
test t8 Compact
|
|
test t9 Redundant
|
|
drop table t8, t9;
|
|
set global innodb_file_per_table=0;
|
|
set global innodb_file_format=Antelope;
|
|
set global innodb_file_per_table=on;
|
|
set global innodb_file_format=`Barracuda`;
|
|
set global innodb_file_format_check=`Antelope`;
|
|
create table normal_table (
|
|
c1 int
|
|
) engine = innodb;
|
|
select @@innodb_file_format_check;
|
|
@@innodb_file_format_check
|
|
Antelope
|
|
create table zip_table (
|
|
c1 int
|
|
) engine = innodb key_block_size = 8;
|
|
select @@innodb_file_format_check;
|
|
@@innodb_file_format_check
|
|
Barracuda
|
|
set global innodb_file_format_check=`Antelope`;
|
|
select @@innodb_file_format_check;
|
|
@@innodb_file_format_check
|
|
Antelope
|
|
show table status;
|
|
select @@innodb_file_format_check;
|
|
@@innodb_file_format_check
|
|
Barracuda
|
|
drop table normal_table, zip_table;
|