运行以下指令查看各进程状态,并获取需要处理的进程Id

    show PROCESSLIST
    
    select * from information_schema.processlist where Command!='Sleep';
    

    运行以下指令杀死相应进程
    kill Id