Skip to content

Instantly share code, notes, and snippets.

@adriancb
Created August 8, 2013 17:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adriancb/6186992 to your computer and use it in GitHub Desktop.
Save adriancb/6186992 to your computer and use it in GitHub Desktop.
Drop the memory usage of .bin files in the MySQL data directory
PURGE BINARY LOGS BEFORE DATE_SUB( NOW( ), INTERVAL 7 DAY);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment