mysql锁表问题 MySQLTransactionRollbackException: Lock wait timeout exce

1、查询是否锁表
show open tables where in_use>0;
 
2、查询进程
show processlist
查询到相对应的进程,然后 kill id
 
3、查看正在锁的事务
select * from information_schema.innodb_locks; 
 
4、查看等待锁的事务
select * from information_schema.innodb_lock_waits;

猜你喜欢

转载自blog.csdn.net/qq_31024823/article/details/82081382