mysql報錯InnoDB: ERROR: the age of the last checkpoint is

mysql有時會報如下錯:

 130508  3:40:15  InnoDB: ERROR: the age of the last checkpoint is 13492019,

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 row.
 

這主要是由於 innodb_log_file_size 默認是5M, 不夠用引起的.

增大innodb_log_file_size的方法:

  1. 暫停mysql, service mysqld stop
  2. 刪除或轉移ib_logfile0和ib_logfile1, rm -f /var/lib/mysql/ib_logfile*
  3. 編輯my.cnf , 增加 innodb_log_file_size=256M
  4. 啓動mysql, service mysqld start
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章