错误:
Row size too large .The maximum row size for the used table type , not counting BLOBs, is 65535 .This includes storage overhead ,check the manual .You have to change some columns to TEXT or BLOB
原因:创建表的时候,字段超长了
例如
CREATE TABLE `t_error35` ( `id` varchar(255) NOT NULL COMMENT '主键', `class_name` varchar(65278) NOT NULL COMMENT '错误码对应类名' ) ENGINE=InnoDB CHARSET=ascii ROW_FORMAT=COMPACT;
65535是最大的值,255+ 1(变长长度)+ 65278 (大于255)+ 2(变长长度) = 65536
解决:将class_name 设置为 BLOB或者TEXT
解决思路 来源于 MySQL 一行记录是怎么存储的? | 小林coding