select concat('KILL ',id,';') from information_schema.processlist where DB != '需要排除的DB' and COMMAND ='Sleep' ;
Created
March 29, 2021 08:13
-
-
Save dollarkillerx/c905ed67805c06eb3983fecbded0f377 to your computer and use it in GitHub Desktop.
解决MySQL链接池用满
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment