FLUSH LOGS syntaxΒΆ

FLUSH LOGS

Works same as system USR1 signal. Initiate reopen of searchd log and query log files, letting you implement log file rotation. Command is non-blocking (i.e., returns immediately).

mysql> FLUSH LOGS;
Query OK, 0 rows affected (0.01 sec)