Skip to content

Instantly share code, notes, and snippets.

@dollarkillerx
Created March 29, 2021 08:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dollarkillerx/c905ed67805c06eb3983fecbded0f377 to your computer and use it in GitHub Desktop.
Save dollarkillerx/c905ed67805c06eb3983fecbded0f377 to your computer and use it in GitHub Desktop.
解决MySQL链接池用满
select concat('KILL ',id,';') from information_schema.processlist where DB != '需要排除的DB' and COMMAND ='Sleep' ;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment