Last active
January 14, 2020 08:56
-
-
Save nimdasx/4ee77fff7cf5263dc87d5fe1e174f0b3 to your computer and use it in GitHub Desktop.
kill query mysql macet
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 ' ') KillQuery | |
FROM information_schema.processlist | |
WHERE user <> 'root' | |
AND time >= 100; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment