Mysql错误: ERROR 1205: Lock wait timeout exceeded解决办法

Posted stubbornness1219

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Mysql错误: ERROR 1205: Lock wait timeout exceeded解决办法相关的知识,希望对你有一定的参考价值。

Java执行一个SQL查询未提交,遇到1205错误。

    java.lang.Exception:

    ### Error updating database.  Cause: java.sql.SQLException: Lock wait timeout exceeded; try restarting transaction

 

    解决办法:

        执行MySQL命令: show full processlist;

     
     

     然后找出查询语句的系统id:kill掉被锁住的线程id

    

   

    查看事物表: select * from information_schema.innodb_trx;



  参考文章:记一次处理mysql锁等待(Lock wait timeout exceeded):http://my.oschina.net/quanzhong/blog/222091

以上是关于Mysql错误: ERROR 1205: Lock wait timeout exceeded解决办法的主要内容,如果未能解决你的问题,请参考以下文章

Mysql错误: ERROR 1205: Lock wait timeout exceeded; try restarting transaction

ERROR 1205 (HY000): Lock wait timeout exceeded

ERROR 1205 (HY000): Lock wait timeout exceeded; try restarting transaction

ERROR 1205 (HY000): Lock wait timeout exceeded; try restarting transaction解决办法

ERROR 1205 (HY000): Lock wait timeout exceeded; try restarting transaction解决

执行 update操作的时候有报错 ERROR 1205 (HY000): Lock wait timeout exceeded; try restarting transaction