首先 通过
show OPEN TABLES where In_use > 0;
可以查看锁表状态
在查看 锁表的进程ID
select * from information_schema.PROCESSLIST where DB='XXX数据库' limit 10;
查看到后
用
KILL xxx进程ID
杀死进程
首先 通过
show OPEN TABLES where In_use > 0;
可以查看锁表状态
在查看 锁表的进程ID
select * from information_schema.PROCESSLIST where DB='XXX数据库' limit 10;
查看到后
用
KILL xxx进程ID
杀死进程