[ERR] 1118 – Row size too large (> 8126). Changing some columns to TEXT or BLOB may help. In current…
昨天,在测试新的数据库时,迁移表遇到了这个问题。现在记录一下解决方案。 1.在配置文件中添加关闭严格模式的配置:sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES 2.在配置文件中添加使用独立表空间的配置:innodb_file_per_table=1 3.在数据库中执行:SHOW GLOBAL VARIABLES LIKE '%innodb_f…