今さらだけど。FLUSH LOGSすればいいんだろうけど、定期的にローテートするにはlogrotateでmysqladmin flush-logsでいい?
- /etc/logrotate.d/mysql
/var/log/mysql/*.log { notifempty sharedscripts postrotate /usr/local/mysql/bin/mysqladmin flush-logs 2> /dev/null || true endscript }
今さらだけど。FLUSH LOGSすればいいんだろうけど、定期的にローテートするにはlogrotateでmysqladmin flush-logsでいい?
/var/log/mysql/*.log { notifempty sharedscripts postrotate /usr/local/mysql/bin/mysqladmin flush-logs 2> /dev/null || true endscript }