1. 程式人生 > >Mysql錯誤: ERROR 1205: Lock wait timeout exceeded; try restarting transaction

Mysql錯誤: ERROR 1205: Lock wait timeout exceeded; try restarting transaction

serve ces post tar span 直接 err -s tran

MySQL:innodb的事務鎖,一個線程占用著,簡單做法是:執行mysql命令: show full processlist;

然後找出查詢語句的系統id:kill掉被鎖住的線程id;kill 12321;

如果這樣不好使,斃了狗,直接關掉集成運行環境,像PHPstudy,wampserver這些集成包,

簡單粗暴,搞定!

Mysql錯誤: ERROR 1205: Lock wait timeout exceeded; try restarting transaction