MariaDB10.2+的大表创建解决方案
2020-07-22 本文已影响0人
承诺一时的华丽
【MariaDB10.2+的大表创建解决方案】
SQL错误:Row size too large (> 8126). Changing some columns to TEXT or BLOB may help. In current row format, BLOB prefix of 0 bytes is stored inline.
解决方案:
临时innodb关闭严格检查
SET SESSION innodb_strict_mode=OFF;
创建大表SQL语句
# CREATE TABLE table_name( ... )
开启innodb严格检查
SET SESSION innodb_strict_mode=ON;