MySQL 创建表时,有以下报错:
[ERR] 1118 - Row size too large (> 8126). Changing some columns to TEXT or BLOB may help. In current row format, BLOB prefix of 0 bytes is sorted inline.
1. 先查询 innodb_strict_mode
SHOW VARIABLES LIKE 'innodb_strict_mode';
2. 如果返回为 ON,则更改为 OFF
打开My.ini文件,在 [mysqld] 下添加 innodb_strict_mode=OFF
3. 重启mysql服务