Created
December 20, 2019 11:23
-
-
Save krukru/6c799d760924e80d19038a6e9efabfdb to your computer and use it in GitHub Desktop.
RDS get sleepy connections kill list
This file contains hidden or 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('CALL mysql.rds_kill(',id,')' SEPARATOR '; ') AS kill_list | |
FROM INFORMATION_SCHEMA.PROCESSLIST | |
WHERE command='Sleep'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment