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