In MySQL 5.5 and earlier, the steps to resize the InnoDB log
files were a bit involved and for example included manually
moving the log files out of the way as InnoDB would only create
new files, if none existed.
In MySQL 5.6 a not so much talked about feature is the support to
resize the log files in a way much more similar to changing other
settings in MySQL. Now you simply update your MySQL configuration
file and restart MySQL.
Let us look at an example. In MySQL 5.5 and earlier the total
size of the InnoDB log files has to be less than 4G in total, so
one way of staying within this limit is to have two files each
2047M large:
innodb $ ls -1s ib_logfile*
2096132 ib_logfile0
2096144 ib_logfile1
Now update the configuration file to take advantage of the fact
that MySQL 5.6 allows much larger InnoDB log files; the actual
limit is a total size of 512G, but here I will use two files each
4G large:
…
[Read more]