MySQL Error: Lock wait timeout exceeded?

问题描述

具体错误信息是

General error: 1205 Lock wait timeout exceeded; try restarting transaction

这个问题原因是有个进程一直占用着锁不释放,如何重现这个问题呢?是该怎么解决呢?


森栏
浏览 536回答 1
1回答

梵蒂冈之花

mysql -uxxx -ppass -e"show processlist"|grep -i "locked"or show engine innodb status找到id kill之
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

MySQL