#1118 - Row size too large (> 8126). Changing some columns to TEXT or BLOB or using
    文章作者:恒爱网络 阅读次数:10215 发布时间:2017-3-9

    #1118 - Row size too large (> 8126). Changing some columns to TEXT or BLOB or using ROW_FORMAT=DYNAMIC or ROW_FORMAT=COMPRESSED may help. In current row format, BLOB prefix of 768 bytes is stored inline.

    某用户导入数据库遇到以上错误,请求协助。尝试了网络上多种解决方案之后,确定以下方式有效.


    首先修改 php.ini 文件增加


    innodb_file_per_table

    innodb_file_format = Barracuda

     

    然后 用有ALTER权限的用户执行以下的查询, 将其中XXXX 替换为出错的数据表名

     

    ALTER TABLE  XXXX     

    ENGINE=InnoDB     

    ROW_FORMAT=COMPRESSED     

    KEY_BLOCK_SIZE=8;