现在的位置: 首页 > 综合 > 正文

mysql redo日志太小的问题

2018年01月21日 ⁄ 综合 ⁄ 共 480字 ⁄ 字号 评论关闭

前段时间的一个报错,原因是业务上进行大量的更新操作一个操作大概更新上百万数据,最后悲剧出现:

140314 13:05:48  InnoDB: ER#RR: the age of the last checkpoint is 1132216877,
InnoDB: which exceeds the log group capacity 724770202.
InnoDB: If you are using big BLOB or TEXT rows, you must set the
InnoDB: combined size of log files at least 10 times bigger than the
InnoDB: largest such row.

该问题主要是因为redo设置过小的原因导致的,之前设置的是3组,每一组一个文件大小256M
后来改成512M就ok,这里做个记录存个档。
另外,处理过程需要注意的是
1,关闭mysql需要“干净”的关闭
 可以设置 innodb_fast_shutdown  = 0  ,innodb_max_dirty_pages_pct=0
之后备份ib_logfile文件然后删除,最后启动mysql即可。
 

抱歉!评论已关闭.