1. 程式人生 > >mysql 5.7匯入較大檔案報錯

mysql 5.7匯入較大檔案報錯

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.


匯入sql檔案出現上述錯誤資訊,之前網上翻了幾個帖子,基本都是一樣但始終不見有效果,後來看了一下是版本的原因。

解決方案:

在mysql的my.ini配置檔案中新增

            innodb_strict_mode = 0 

重啟mysql服務即可。