衡铁刚 1)2011-2013:Alibaba MySQL DBA 2)2014-至今: Alibaba 数据库PD
分类: Mysql/postgreSQL
2012-10-08 22:44:43
CREATE TABLE `a` (
…
)ENGINE=InnoDB ROW_FORMAT=FIXED ;
ENGINE |
ROW_FORMAT(default) |
ROW_FORMAT |
ROW_FORMAT |
InnoDB |
COMPACT |
REDUNDANT |
COMPRESSED |
MyISAM |
Fixed |
DYNAMIC |
|
root@db1 11:41:45>show table status like '%a%'\G;
*************************** 1. row ***************************
Name: a
Engine: InnoDB
Version: 10
Row_format: Compact
Rows: 21509
Avg_row_length: 122
Data_length: 2637824
Max_data_length: 0
Index_length: 2457600
Data_free: 4194304
Auto_increment: 24081
Create_time: 2012-08-31 23:23:16
Update_time: NULL
Check_time: NULL
Collation: gbk_chinese_ci
Checksum: NULL
Create_options: row_format=FIXED
- innodb_strict_mode=1,create table error->failure
- 解决方案:source文件前set global innodb_strict_mode=0;完毕后set global innodb_strict_mode=1;