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
除了縮減字段大小,還有什么解決方案嗎?