ERROR 1118 (42000) Row size too large

前端 未结 4 1356
遥遥无期
遥遥无期 2020-12-16 00:46

I know that this question has been asked (and answered) many times, but none of them appear to be the same problem that I am seeing...

The table that is giving me pr

相关标签:
4条回答
  • 2020-12-16 00:52

    I had this issue with MYSQL 5.7 (OSX 10.11).

    The following worked although it may not be ideal.

    In my.cfn add:

    innodb_strict_mode = 0    
    
    0 讨论(0)
  • 2020-12-16 00:55

    Ran into an identical problem importing BLOB data from 5.5 to 5.6.22 where the blobs were aprox: 70MB maximum. However, while increasing the innodb_log_file_size did the trick, in my case, I had to increase it to 10GB (I tried in increments of 1GB starting from 1GB) which is way more than 10 times the max BLOB size.

    0 讨论(0)
  • 2020-12-16 00:56

    Check that the innodb_log_file_size setting is sufficiently large -- 10 times the largest BLOB data size found in the rows in the table plus the length of other variable length fields.

    The following is from MySQL 5.6 Release Notes

    InnoDB Notes

    • Important Change: Redo log writes for large, externally stored BLOB fields could overwrite the most recent checkpoint. The 5.6.20 patch limits the size of redo log BLOB writes to 10% of the redo log file size. The 5.7.5 patch addresses the bug without imposing a limitation. For MySQL 5.5, the bug remains a known limitation.

      As a result of the redo log BLOB write limit introduced for MySQL 5.6, innodb_log_file_size should be set to a value greater than 10 times the largest BLOB data size found in the rows of your tables plus the length of other variable length fields (VARCHAR, VARBINARY, and TEXT type fields). Failing to do so could result in “Row size too large” errors. No action is required if your innodb_log_file_size setting is already sufficiently large or your tables contain no BLOB data. (Bug #16963396, Bug #19030353, Bug #69477)

    0 讨论(0)
  • 2020-12-16 01:09
    ERROR 1118 (42000) at line 1852: 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.
    [mysqld]
    innodb_log_file_size = 512M
    innodb_strict_mode = 0
    
    ubuntu 16.04 edit path : nano /etc/mysql/mysql.conf.d/mysqld.cnf
    

    it work!!…

    Click To Document

    0 讨论(0)
提交回复
热议问题