您的位置:首页 > 数据库 > MySQL

mysql 错误代码:1118解决方法

2016-07-21 20:39 537 查看
错误描述:

错误代码: 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 '券号';
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: