1、查看对应的线程信息:mysql> select * from information_schema.processlist where user='your_user' and command='sleep';

2、将大量kill线程语句放入文件用于后续直接执行:

  mysql -hdbaas.mysql.minirds.env28.intranet.com -uyour_user -pyour_password -P3xxx -e "select concat('KILL ',id,';') from information_schema.processlist where user='your_user' and command='sleep';" > /tmp/kill.sql

3、直接执行: mysql> source /tmp/kill.sql

相关文章:

  • 2021-12-03
  • 2022-12-23
  • 2021-12-12
  • 2022-01-25
  • 2022-12-23
  • 2022-12-23
  • 2022-01-24
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-15
  • 2022-01-24
相关资源
相似解决方案