How to fix InnoDB: ERROR: the age of the last checkpoint

On a MySQL server, the error log keeps getting the following error message

The error is because you are trying to insert more data into InnoDB and the InnoDB log is getting full before the data can be written into the data file. You need to set the value of innodb_log_file_size value at least ten times bigger than max_allowed_packet.

To fix the error, edit your MySQL configuration file

On Debian/Ubuntu with MairaDB

Under [mysqld] section, add

To select a proper size for these MySQL variables for your system, use MySQL tuner.

It will suggest you recommended values of innodb_buffer_pool_size and innodb_log_file_size.

Disable fast MySQL shutdown.

This will flush all changes done on MySQL from log file to data file so we can safely remove MySQL InnoDB log files. We need to remove existing log files before MySQL can create log files with different size.

Stop MySQL server.

systemctl stop mysql

Move log files out

Start MySQL service with

This will recreate MySQL log files (ib_logfile0 and ib_logfile1) with the new size.

See MySQL

Need help with Linux Server or WordPress? We can help!

Leave a Reply

Your email address will not be published. Required fields are marked *