Created
March 3, 2020 14:14
-
-
Save pawiromitchel/2e9d7ea9381373b30eb9125e96a08b9d to your computer and use it in GitHub Desktop.
Kill all MySQL Queries of a specific user
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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