mysql 报错记录

1、The table does not comply with the requirements by an external plugin

Mysql8, 当表没有主键的时候,就会报这个错,加上主键就好了

 

2、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, Time: 0.015000s

建表的时候,报了这么一个错,

大概原因是这张表的字段的长度全部加起来,再乘以 2(gdk)或 3(utf-8) 或 4(uft8mb4) 如果结果大于65535,就会报错。

 

解决方案1:varchar的字段长度缩小一些

解决办法2:将比较长的字段类型设置成text而不是varchar

除了缩减字段大小,还有什么解决方案吗?

posted @   aaacarrot  阅读(3019)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 阿里最新开源QwQ-32B,效果媲美deepseek-r1满血版,部署成本又又又降低了!
· SQL Server 2025 AI相关能力初探
· AI编程工具终极对决:字节Trae VS Cursor,谁才是开发者新宠?
· 开源Multi-agent AI智能体框架aevatar.ai,欢迎大家贡献代码
· Manus重磅发布:全球首款通用AI代理技术深度解析与实战指南
点击右上角即可分享
微信分享提示