Skip to content

Instantly share code, notes, and snippets.

@jrsouth
Created November 8, 2013 12:41
Show Gist options
  • Save jrsouth/7370504 to your computer and use it in GitHub Desktop.
Save jrsouth/7370504 to your computer and use it in GitHub Desktop.
Kill mysql processes/threads
mysql -N -B -e "select concat('KILL ',id,';') from information_schema.processlist where time > 1" | mysql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment