编程那点事编程那点事

专注编程入门及提高
探究程序员职业规划之道!

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.

mysql在导入数据的时候出错:

ERR] 1118 - 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.

在命令行中输入如下命令

SHOW VARIABLES LIKE '%innodb_log_file_size%';

查询结果如下:

innodb_log_file_size值

innodb_log_file_size的值为5242880,5242880/1024/1024 = 5,也就是5M左右。

下面就是修改 innodb_log_file_size 的值了。

Linux系统需要在my.cnf文件中做修改,Windows需要在my.ini文件中做修改。

在MySQL配置文件中找到 innodb_log_file_size,并修改值就行了。如果找不到 innodb_log_file_size,那就在配置文件的最下面加上即可。

innodb_log_file_size = 128M

最后,记得重启电脑哦~

未经允许不得转载: 技术文章 » 数据库 » 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.