MySQL 創建數據表時如果字段過多或者一條記錄中的字段長度過大, 會報這個錯誤:
Row size too large (> 8126). Changing some columns to TEXT or BLOB may help. In current row format, BLOB prefix of 0 bytes is stored inline.
解決方式
編輯 MySQL 配置文件, 添加下面兩個配置項
innodb_log_file_size=2048M
innodb_strict_mode=0