14.8.3 Identifying the File Format in Use 确认使用的文件格式; 如果 你启用一个不同的文件格式使用 innodb_file_format configuration 选项 mysql> show variables like '%innodb_file_format%'; +--------------------------+----------+ | Variable_name | Value | +--------------------------+----------+ | innodb_file_format | Antelope | | innodb_file_format_check | ON | | innodb_file_format_max | Antelope | +--------------------------+----------+ 3 rows in set (0.00 sec) 改变只应用于新创建的表。另外,当你创建一个新的表,tablespace 包含表是被标记为 “earliest” or “ simplest” 文件格式需要支持表的特性。 比如, 你启用Barracuda 文件格式,创建的新表不会使用Dynamic or Compressed 行格式, 新的表空间包含的表是标记为使用Antelope file format . 很容易识别文件格式通过使用一个给定的表,表使用Antelope 文件格式 如果row format 通过 SHOW TABLE STATUS 显示为Compact or Redundant. 表使用Barracuda file format 如果 SHOW TABLE STATUS显示为Compressed or Dynamic. *************************** 145. row *************************** Name: tmp10 Engine: InnoDB Version: 10 Row_format: Compact Rows: 1443 Avg_row_length: 56 Data_length: 81920 Max_data_length: 0 Index_length: 0 Data_free: 0 Auto_increment: NULL Create_time: 2015-11-19 14:54:33 Update_time: NULL Check_time: NULL Collation: utf8_general_ci Checksum: NULL Create_options: Comment: