更改innodb_log_file_size, 解决InnoDB: ERROR: the ag...

有时侯Mysql会报错: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 the
InnoDB: combined size of log files at least 10 times bigger than the
InnoDB: largest such rowsql

这主要是因为 innodb_log_file_size 默认是5M, 不够用引发的.ci

增大innodb_log_file_size的方法:it

  1. 暂停mysql, /etc/init.d/mysql stop
  2. 转移ib_logfile0和ib_logfile1,   mv /usr/local/mysql/var/ib_logfile* ../
  3. 编辑my.cnf  ,  增长  innodb_log_file_size=64M
  4. 启动mysql,  /etc/init.d/mysql start
相关文章
相关标签/搜索