Created
February 5, 2016 09:30
-
-
Save bogdanr/59297a484f0ec8211a35 to your computer and use it in GitHub Desktop.
Kill long running processes in RDS
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
mysql -h __some_host__ -p __some_pass__ -r -s -e "select concat('CALL mysql.rds_kill(',id,');') from information_schema.processlist where command='Sleep' and time > 200;" > aaa.sql |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment