If for any reason you need to change the size of InnoDB log files (also known as transaction logs), but not sure how to do it, this post will guide you through the steps.
Step 1: Preflight checks Something to keep in mind
Database restart is needed as part of this process.
Locate your MySQL configuration file
If you don’t know where the configuration file is, you can follow one of my previous posts on “How to find MySQL configuration file?”.
Find the existing logs and check their size
If database is running, you can simply use a tool
called lsof
:
db01 ~ # lsof -c mysqld | grep ib_logfile mysqld 15153 mysql 9uW REG 8,3 5242880 19350809 /var/lib/mysql/ib_logfile0 mysqld 15153 mysql 10uW REG 8,3 5242880 …[Read more]