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 '券号';


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM