Documentation Home
MySQL 5.7 Reference Manual
Related Documentation Download this Manual Excerpts from this Manual

MySQL 5.7 Reference Manual  /  ...  /  Changing the Number or Size of InnoDB Redo Log Files

14.4.2 Changing the Number or Size of InnoDB Redo Log Files

To change the number or the size of your InnoDB redo log files, perform the following steps:

  1. Stop the MySQL server and make sure that it shuts down without errors.

  2. Edit my.cnf to change the log file configuration. To change the log file size, configure innodb_log_file_size. To increase the number of log files, configure innodb_log_files_in_group.

  3. Start the MySQL server again.

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.

Download this Manual
User Comments
  Posted by Shane Bester on May 8, 2015
The innodb log files are typically named ib_logfile0, ib_logfile1, ib_logifleN where N is less than the number returned by select @@global.innodb_log_files_in_group;
Sign Up Login You must be logged in to post a comment.