com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: The size of BLOB/TEXT data inserted in one transaction is greater than 10% of redo log size. Increase the redo log size using innodb_log_file_size
首先是遇到这个问题,所以需要修改innodb_log_file_size的大小。
windows方法:
1.暂停mysql
2.转移ib_logfile0和ib_logfile1(先转移到别的目录下备份,等后面重启mysql会自己重新生成)
3.编辑my.ini , 增加 innodb_log_file_size=140M
4.启动mysql