MySQL continues using the old file for logging, after mysql slow log is rotated in Red Hat Enterprise Linux 5

Solution Verified - Updated -

Issue

  • After the weekly MySQL log rotation, the mysqld continues to write logs to the recently deleted file rather than using the new log.
$ grep slow lsof-mysqld-after.log
mysqld    24867    mysql   44u      REG              253,2      328721     655422 /var/lib/mysql/mysqld-slow.log.1 (deleted)

Environment

Red Hat Enterprise Linux 5

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content