MySQL 5.6 will now automatically recreate the InnoDB redo log
files during a MySQL restart if the size (or number) of these
logs changes, i.e. a change to innodb_log_file_size
.
See Changing the Number or Size of InnoDB Log
Files which states “If InnoDB detects that the
innodb_log_file_size differs from the redo log file size, it will
write a log checkpoint, close and remove the old log files,
create new log files at the requested size, and open the new log
files.”
Before MySQL 5.6 it was necessary to stop MySQL and remove the InnoDB log files manually before restarting MySQL.
The error log shows:
tail -f /mysql/log/error.log ... 2015-03-28 21:51:25 3767 [Warning] InnoDB: Resizing redo log from 2*3072 to 2*65536 pages, LSN=1626017 2015-03-28 21:51:25 3767 [Warning] InnoDB: Starting to delete and …[Read more]