Skip to content

Instantly share code, notes, and snippets.

@romach
Last active January 21, 2019 10:52
Show Gist options
  • Save romach/8049e38bca4e0ce7cef2eb65588a0487 to your computer and use it in GitHub Desktop.
Save romach/8049e38bca4e0ce7cef2eb65588a0487 to your computer and use it in GitHub Desktop.

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment