romach
1/21/2019 - 10:50 AM

Delete slow query log in Mysql

First method

Delete log file:

rm mysql-slow.log

Flush logs on MySql server:

FLUSH LOGS;

Second method

Fill log file with empty string

echo '' | sudo tee mysql-slow.log > /dev/null