← Back to team overview

maria-discuss team mailing list archive

Flush logs does not recreate slowlog.

 

Hi All.

I use:
MariaDB-server-5.5.30-1.x86_64
on
CentOS release 6.4 (Final)
2.6.32-358.el6.x86_64


"flush logs" or "flush slow logs" does not recreate the file.
In https://dev.mysql.com/doc/refman/5.5/en/flush.html there is "With no
log_type option, FLUSH LOGS closes and reopens all log files." and "With a
log_type option, only the specified log type is flushed." but neither
command recreates the log file.

I rotate slowlog through crontab:
mv /var/log/mysqld-slow.log /var/log/mysqld-slow.log.old ; mysqladmin
flush-logs

Is it a bug or should it be so for some reason?

Best regards,
Rafal.

Follow ups