Mysql MySQLSyntaxErrorException Row size too large
2017-02-17 20:53
651 查看
一、问题描述
今天编辑富文本内容提交更新到数据库时,遇到以下错误:Error updating database. Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: 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.
编辑器用的是 vue-quill-editor,这个编辑器对图片的处理是把图片进行 Base64 编码到文本中。
提示行体积太大??
二、解决方案
设置 Mysql 的 innodb_log_file_size 就可以了。在 my.cnf(Linux) 或 my.init(Windows) 文件的 [mysqld] 下方,增加一行设置:
[mysqld] innodb_log_file_size = 256M
然后重启 Mysql 即可:
主要问题还是 Mysql InnodbDB 的文件存储引起的。详见本文参考里面的链接文章。
三、参考
《Change limit for “Mysql Row size too large”》相关文章推荐
- MySQLSyntaxErrorException: Row size too large 转摘自:https://confluence.atlassian.com/display/CONFKB/MySQLSyntaxErrorException%3A+Row+size+too+large
- [MySQL 错误]ERROR 1118 (42000): Row size too large. The maximum row size for the used table type, not
- [MySQL 错误]ERROR 1118 (42000): Row size too large. The maximum row size for the used table type, not
- mysql 主从同步故障解决 Error 'Row size too large (> 8126).
- Mysql [Err] 1118 - Row size too large
- Mysql_大字段问题Row size too large.....not counting BLOBs, is 8126.
- ERROR 1118 (42000): Row size too large. The maximum row size for the used table type, not counting B
- mysql 报错:Row size too large. The maximum row size for the used table type, not counting BLOBs, is 65
- Mysql 导入psc 文件时,数据列过多,提示Row size too large(>8126)
- MySql “Row size too large (> 8126)”
- 解决springboot+jpa+hibernate启动时报错:MySQLSyntaxErrorException: Specified key was too long; max key lengt
- ERROR 1118 : Row size too large. The maximum row size for the used table type
- MySql 5.6异常处理: Row size too large (> 8126)
- ERROR 1118 (42000): Row size too large (> 8126).
- MySQL Database Error: Row size too large.
- ERROR 1118 (42000): Row size too large. The maximum row size for the used table type, not counting B
- MySQLSyntaxErrorException: Specified key was too long; max key length is 767 bytes
- Mysql [Err] 1118 - Row size too large. The maximum row size for the used table type, not counting BLOBs, is 65535.
- MySql “Row size too large (> 8126)” 亲测解决
- MySQL报错 Mysql Row Size too large (>8126) 和 Unknow Table Engine InnoDB 解决方案