Skip to content

Instantly share code, notes, and snippets.

@pawiromitchel
Created March 3, 2020 14:14
Show Gist options
  • Save pawiromitchel/2e9d7ea9381373b30eb9125e96a08b9d to your computer and use it in GitHub Desktop.
Save pawiromitchel/2e9d7ea9381373b30eb9125e96a08b9d to your computer and use it in GitHub Desktop.
Kill all MySQL Queries of a specific user
SELECT GROUP_CONCAT(CONCAT('KILL ',id,';') SEPARATOR ' ') FROM information_schema.processlist WHERE user = 'user'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment