The error [ERROR] InnoDB: Ignoring the redo log due to missing MLOG_CHECKPOINT typically occurs in MySQL or MariaDB databases using the InnoDB storage engine. This error indicates an issue with the InnoDB redo log, which is essential for ensuring data consistency and recovery in the event of a crash. Here are the situations where this error might arise:
Steps to address the issue:
To increase the redo log size, you can add or modify the following lines in your MySQL/MariaDB configuration file (my.cnf or my.ini):

After making this change, you will need to:
If the InnoDB redo log is corrupt, it can prevent the MySQL or MariaDB server from starting properly or cause data consistency issues. Here are the steps to handle a corrupted redo log:
1. Stop the Database Server
First, stop the MySQL/MariaDB server to ensure no further writes are attempted on the corrupted redo logs.
sudo systemctl stop mysql # For MySQL
2. Backup Data Directory
Before making any changes, backup your data directory to ensure you have a copy of your data in its current state.
cp -r /var/lib/mysql /var/lib/mysql_backup # Adjust path if your data directory is different
3. Move or Delete Corrupted Redo Log Files
Locate the redo log files (ib_logfile0, ib_logfile1, etc.) and move or delete them. These files are typically located in the MySQL data directory.
cd /var/lib/mysql # Adjust path if your data directory is different
mv ib_logfile0 ib_logfile0.bak
mv ib_logfile1 ib_logfile1.bak
# Repeat for any additional redo log files (ib_logfile2, etc.)
4. Check and Update Configuration (Optional)
Optionally, you might want to increase the size of the redo log files to prevent future issues. This involves editing the MySQL configuration file (my.cnf or my.ini).
5. Start the Database Server
Restart the MySQL server. This will create new redo log files with the appropriate size.
sudo systemctl start mysql # For MySQL
6. Check Logs and Verify
Check the MySQL/MariaDB error logs to ensure the server started correctly and that new redo log files were created.
tail -n 100 /var/log/mysql/error.log # Adjust path if your log file is different
Scenario 1: Database Starts Successfully
If the database starts successfully, monitor it closely for any further issues. It’s also a good practice to perform a full backup as soon as possible.
Scenario 2: Database Fails to Start
If the database fails to start, additional recovery steps may be necessary. Here are some additional steps:
[mysqld] innodb_force_recovery=1 # You can increase this value incrementally up to 6
Restart the MySQL server again. If it starts, dump all databases immediately using mysqldump.
mysqldump --all-databases > all_databases_backup.sql
After dumping the databases, remove the innodb_force_recovery line from the configuration file and restart the server again to disable recovery mode.
mysql -u root -p < all_databases_backup.sql
Handling a corrupted redo log involves stopping the server, backing up your data, moving or deleting the corrupted log files, optionally increasing the log file size, and restarting the server. If issues persist, forcing InnoDB recovery or restoring from backup are additional steps to consider. Always ensure you have reliable backups to minimize data loss in such scenarios.
Comment Editor X