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

mysql 错误代码:1118解决方法

2020-01-15 11:18 2221 查看

错误描述:

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

  • 点赞
  • 收藏
  • 分享
  • 文章举报
dfsafsd32323 发布了0 篇原创文章 · 获赞 0 · 访问量 805 私信 关注
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: