更改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 the
InnoDB: combined size of log files at least 10 times bigger than the
InnoDB: largest such row www.2cto.com
這主要是由於 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