mysql 错误代码:1118解决方法

错误描述:

错误代码: 1118
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 BLOBs

trans表 memo  varchar(1000)  原来的字段类型。

1.ALTER TABLE trans MODIFY COLUMN memo TEXT DEFAULT NULL COMMENT '交易备注';

2.DEFAULT CHARSET=utf8mb4  -->utf8

这样就可以再建立其他的varchar字段了。

ALTER TABLE trans ADD COLUMN cpic_coupon_number varchar(20) DEFAULT NULL COMMENT '券号';

原文地址:https://www.cnblogs.com/simpledev/p/5693098.html