SELECT CONCAT('KILL ', id, ‘;’) AS kill_command
FROM information_schema.processlist
WHERE user=‘用户名’ AND command
=‘Sleep’;
处理死锁问题
最新推荐文章于 2024-08-16 23:28:57 发布
SELECT CONCAT('KILL ', id, ‘;’) AS kill_command
FROM information_schema.processlist
WHERE user=‘用户名’ AND command
=‘Sleep’;