101-Mysql配置-修改innodb_log_file_size

1. Caused by: 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.

linux ubuntu 16


修改方法

show variables like '%innodb_log_file%';

show variables like '%shutdown%';   #确认innodb_fast_shutdown为1,这样在重启MySQL时,不会使用ib_logfile文件


vi /etc/mysql/my.cnf

[mysqld]

group_concat_max_len = 1024000

innodb_log_file_size=640M

max_allowed_packet = 128M

collation-server = utf8mb4_unicode_ci

init-connect='SET NAMES utf8mb4'

character-set-server = utf8mb4

[client]

default-character-set=utf8mb4

[mysql]

default-character-set=utf8mb4

/etc/init.d/mysql restart

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

友情链接更多精彩内容