InnoDB表的限制

参见:https://dev.mysql.com/doc/refman/5.7/en/innodb-restrictions.html

The maximum row length, except for variable-length columns (VARBINARYVARCHARBLOB and TEXT), is slightly less than half of a page for 4KB, 8KB, 16KB, and 32KB page sizes. For example, the maximum row length for the defaultinnodb_page_size of 16KB is about 8000 bytes. For an InnoDB page size of 64KB, the maximum row length is about 16000 bytes. LONGBLOB and LONGTEXT columns must be less than 4GB, and the total row length, including BLOB andTEXT columns, must be less than 4GB.

除了可变长度列(VARBINARY,VARCHAR,BLOB和TEXT)之外,最大行长度略小于4KB,8KB,16KB和32KB页面大小的页面的一半。例如,默认innodb_page_size为16KB的最大行长度约为8000字节。对于InnoDB页面大小为64KB,最大行长度约为16000字节。 LONGBLOB和LONGTEXT列必须小于4GB,并且总行长度(包括BLOB和TEXT列)必须小于4GB。

Table 14.3 InnoDB Maximum Tablespace Size

InnoDB Page Size Maximum Tablespace Size
4KB 16TB
8KB 32TB
16KB 64TB
32KB 128TB
64KB 256TB

The maximum tablespace size is also the maximum size for a table.
最大表空间大小也是表的最大大小。

The default page size in InnoDB is 16KB. You can increase or decrease the page size by configuring the innodb_page_size option when creating the MySQL instance.
InnoDB中的默认页面大小为16KB。您可以通过在创建MySQL实例时配置innodb_page_size选项来增加或减少页面大小。

ROW_FORMAT=COMPRESSED in the Barracuda file format assumes that the page size is at most 16KB and uses 14-bit pointers.
Barracuda文件格式中的ROW_FORMAT = COMPRESSED假定页面大小最多为16KB并使用14位指针。

32KB and 64KB page sizes are supported, but ROW_FORMAT=COMPRESSED is unsupported for page sizes greater than 16KB. For both 32KB and 64KB page sizes, the maximum record size is 16KB. For innodb_page_size=32k, extent size is 2MB. For innodb_page_size=64k, extent size is 4MB.
支持32KB和64KB页面大小,但对于大于16KB的页面大小,不支持ROW_FORMAT = COMPRESSED。 对于32KB和64KB页面大小,最大记录大小为16KB。 对于innodb_page_size = 32k,范围大小为2MB。 对于innodb_page_size = 64k,范围大小为4MB。
 

猜你喜欢

转载自blog.csdn.net/leon_founder/article/details/83963701