Lock wait timeout exceeded; try restarting transaction

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • crs27
    New Member
    • Jul 2007
    • 40

    Lock wait timeout exceeded; try restarting transaction

    Hai,

    I have a simple query fired on click of a button.
    i.e., update table_name set column1='20' , column2='15' where id='1';

    Even through the query browser it is giving
    Lock wait timeout exceeded; try restarting transaction ,this exception.

    The same was working a couple of days before.
    what might be the reason for this exception.

    Thanks in advance
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Just a simple query? Is it part of a large transaction? What version are you using? You could try increasing the TransactionDead lockDetectionTi meout but I'd like to hear the answers to these questions first.

    Comment

    • crs27
      New Member
      • Jul 2007
      • 40

      #3
      Yes, it is a part of a transaction.But what i wonder is even if i execute the same query in Mysql Query Browser also it is giving the same exception.
      Im using Mysql 5.1
      Query Browser MySql Query Browser 1.2.12

      Comment

      • r035198x
        MVP
        • Sep 2006
        • 13225

        #4
        Increase that TransactionDead lockDetectionTi meout. More importanlty though, how long is the transaction and is it possible to break it down to smaller transactions?
        About the failure in the query browser, I think you may have to restart the server for the error to go away (not sure about that one though).

        P.S How much data is in the table and why is the id text instead of one of the more common numeric types?

        Comment

        Working...