InnoDB: which exceeds the log group capacity
来源:互联网 发布:linux执行sh文件命令 编辑:程序博客网 时间:2024/06/03 19:45
有时你会遇到类似下面的错误:
120414 2:20:34 InnoDB: ERROR: the age of the last checkpoint is 241588252,InnoDB: which exceeds the log group capacity 241588224.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 theInnoDB: largest such row.
这个错误的原因:
系统中存在较大的事物,但是innodb_log_file_size设置太小。
解决方法:
加大redo日志大小。
01) 修改my.cnf
这个需要根据实际情况调整。下面给个例子
[mysqld]innodb_log_buffer_size = 32Minnodb_buffer_pool_size = 3Ginnodb_log_file_size = 768M
注意:innodb_log_file_size在5.5时默认是5M,在5.7时默认是48M。并且必须大于4M,小于innodb_buffer_pool_size/N(这个N为一个日志组中的日志数)。
并且innodb_log_file_size
* innodb_log_files_in_group不能大于512G
这里的目的是要加大,innodb_log_file_size,但是也必须考虑innodb_buffer_pool_size对其的影响。
02)设置innodb_fast_shutdown
mysql> SET GLOBAL innodb_fast_shutdown = 0;
在关闭数据量前将innodb_fast_shutdown设置为0是为了完全干净的关闭数据库,具体可以看下面关于innodb_fast_shutdown的解释。
03) 关闭数据库
service mysql stop04)删除当前的redo文件(ib_logfile*)
05)启动数据库
service mysql start
5.7官方文档:
innodb_log_file_size
--innodb_log_file_size=#
System VariableNameinnodb_log_file_size
Variable ScopeGlobalDynamic VariableNoPermitted Values (<= 5.7.10)Typeinteger
Default50331648
Min Value1048576
Max Value512GB / innodb_log_files_in_group
Permitted Values (>= 5.7.11)Typeinteger
Default50331648
Min Value4194304
Max Value512GB / innodb_log_files_in_group
The size in bytes of each log file in a log group. The combined size of log files (innodb_log_file_size
* innodb_log_files_in_group
) cannot exceed a maximum value that is slightly less than 512GB. A pair of 255 GB log files, for example, would allow you to approach the limit but not exceed it. The default value is 48MB. Sensible values range from 4MB to 1/N
-th of the size of the buffer pool, where N
is the number of log files in the group. The larger the value, the less checkpoint flush activity is needed in the buffer pool, saving disk I/O. Larger log files also make crash recovery slower, although improvements to recovery performance in MySQL 5.5 and higher make the log file size less of a consideration. For general I/O tuning advice, see Section 9.5.8, “Optimizing InnoDB Disk I/O”.
innodb_fast_shutdown
--innodb_fast_shutdown[=#]
System VariableNameinnodb_fast_shutdown
Variable ScopeGlobalDynamic VariableYesPermitted ValuesTypeinteger
Default1
Valid Values0
1
2
The InnoDB
shutdown mode. If the value is 0, InnoDB
does a slow shutdown, a full purge and a change buffer merge before shutting down. If the value is 1 (the default), InnoDB
skips these operations at shutdown, a process known as a fast shutdown. If the value is 2, InnoDB
flushes its logs and shuts down cold, as if MySQL had crashed; no committed transactions are lost, but the crash recovery operation makes the next startup take longer.
The slow shutdown can take minutes, or even hours in extreme cases where substantial amounts of data are still buffered. Use the slow shutdown technique before upgrading or downgrading between MySQL major releases, so that all data files are fully prepared in case the upgrade process updates the file format.
- InnoDB: which exceeds the log group capacity
- 55 Which statement about recovering from the loss of a redo log group is true? A. If the lost redo l
- Sybase的查询Group by 中的 This exceeds the maximum allowable limit of 600解决方案
- How to move the InnoDB log sequence number (LSN) forward
- 14.5.2 Changing the Number or Size of InnoDB Redo Log Files 改变InnoDB Redo Log Files的数量
- InnoDB: The log sequence number in ibdatafiles does not match the log sequence number in the ib_log
- Map output statuses were bytes which exceeds spark.akka.frameSize
- InnoDB存储引擎Log
- mysql innodb redo log
- Innodb redo log archiving
- 126.Identify the two situations in which you use the alert log file in your database to check the de
- The DCOM settings which are independent of whether the PC is in a work group or in a domain
- 127.Identify the two situations in which the alert log file is updated with details. (Choose two.)
- 14.4.2 Changing the Number or Size of InnoDB Redo Log Files 改变 InnoDB Redo Log Fiels 的大小和数量
- 14.4.2 Changing the Number or Size of InnoDB Redo Log Files 改变 InnoDB Redo Log Fiels 的大小和数量
- 14.7.2 Changing the Number or Size of InnoDB Redo Log Files 改变InnoDB Redo Log Files的数量和大小
- Mysql:InnoDB: The log sequence number in ibdata files does not match
- 14.4.2 Changing the Number or Size of InnoDB Redo Log Files
- No mapping found for HTTP request with URI [/Demo/WEB-INF/page/login.jsp] in DispatcherServlet with
- 使用Log4Net - 文件日志 和 SqlServer日志
- C语言带参宏定义
- office 2013出现的各种问题及解决方法(win10 14393版本)
- (示例4)动态加载使用教程
- InnoDB: which exceeds the log group capacity
- ArrayList源码分析
- HTML5 geolocation API的用法
- Freemark上传
- Android常用控件——时间选择器
- 一次centos用光盘引导到可用状态的经历
- uva 10344 23 out of 5
- checkbox控制Input是否可以用以及下拉框的级联——easyUI
- Null ModelAndView returned to DispatcherServlet with name 'springMvc': assuming HandlerAdapter compl