美文网首页
MariaDB10.2+的大表创建解决方案

MariaDB10.2+的大表创建解决方案

作者: 承诺一时的华丽 | 来源:发表于2020-07-22 17:31 被阅读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;

相关文章

网友评论

      本文标题:MariaDB10.2+的大表创建解决方案

      本文链接:https://www.haomeiwen.com/subject/hlytlktx.html