mysql 多线程死锁lock wait timeout exceeded try restarting transaction解决 pymysql

select * from information_schema.INNODB_TRX;
show full processlist;//找出目前连接的列表
kill ID//根据ID kill掉

Lock wait timeout exceeded; try restarting transaction的异常,错误提示的意思,很明显,是因为这条语句被锁住了,所以释放这个锁。

猜你喜欢

转载自www.cnblogs.com/plusUltra/p/11530156.html