首页 >数据库 >mysql教程 >更改innodb_log_file_size, 解决InnoDB: ERROR: the ag...的问题_MySQL

更改innodb_log_file_size, 解决InnoDB: ERROR: the ag...的问题_MySQL

WBOY
WBOY原创
2016-06-01 13:42:181164浏览

bitsCN.com
更改innodb_log_file_size, 解决InnoDB: ERROR: the ag...的问题 有时侯Mysql会报错: 120418  8:00:14  InnoDB: ERROR: the age of the last checkpoint is 9434204,InnoDB: which exceeds the log group capacity 9433498.InnoDB: If you are using big BLOB or TEXT rows, you must set theInnoDB: combined size of log files at least 10 times bigger than theInnoDB: largest such row     这主要是由于 innodb_log_file_size 默认是5M, 不够用引起的. 增大innodb_log_file_size的方法: 暂停mysql, /etc/init.d/mysql stop转移ib_logfile0和ib_logfile1,   mv /usr/local/mysql/var/ib_logfile* ../编辑my.cnf  ,  增加  innodb_log_file_size=64M启动mysql,  /etc/init.d/mysql start   作者 neou bitsCN.com

声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn