We often enable MySQL slow_query_log<\/em> to proactively troubleshoot the performance, There is so lot of information with-in\u00a0slow_query_log\u00a0<\/em>which is enough to address most common (even complex ones occasionally) MySQL performance bottlenecks. What if we haven’t planned for the log lifecycle management of slow query log ? Your log will really grow huge (we keep long_query_time as-low-as 1 second), So we have to plan for slow_query_log<\/em>\u00a0rotating to avoid MySQL outage due to “no space left in the disk” to grow further. There are two ways you can do log rotate, I have explained below:<\/p>\n Table of Contents<\/p>\n<\/i><\/a><\/span><\/div>\n\n