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 @ 2022-04-14 21:06  aaacarrot  阅读(2738)  评论(0编辑  收藏  举报