[FIX] Lock wait timeout exceeded in MySQL

Article ID: 1648 
Last Review: Oct,6 2008
Author: Oleg Beznosov
Last updated by: system APPLIES TO:
  • Plesk 7.5.6 for Windows
  • Plesk 7.5.5 for Windows
  • Plesk 7.6.x for Windows
  • Plesk 7.6.1 for Windows
  • Plesk 8.1.0 for Windows
  • Plesk 8.1 for Windows
  • Plesk 8.1.1.2 for Windows
  • Plesk 8.2 for Windows

Symptoms

Such problem can occur sometimes, for example during statistics execution. It fails with error in event log Event Type:

Error Event Source: statistics.exe
Event Category: None
Event ID: 1
Date: 10/19/2006
Time: 3:25:38 PM
User: N/A
Computer: PLESK
Description:
Can't execute update DomainsTraffic set http_in=42790, http_out=1195034 where date='2006-10-18' and dom_id='10': MySql error 1205:Lock wait timeout exceeded; try restarting transaction
 at (MySQL::execute line 354)
 at execute statistics.exe(vconsoleapp::run line 138) Execute file name: C:\Program Files\SWsoft\Plesk\admin\bin\statistics.exe

Cause

MySQL table gets locked by a running transaction

Resolution

Disable locking. To disable locking add a startup parameter innodb_table_locks=0 into MySQL configuration file "%plesk_dir%MySQL\Data\my.ini". Then restart Plesk MySQL server.


Subscription for this article changesSubscription for this article changes

Please provide feedback on this article

Did this article help you solve your issue?
Yes
No
Partially
I do not know yet
 
Strongly Agree   Strongly Disagree
  9 8 7 6 5 4 3 2 1
The article is easy to understand
The article is accurate
Additional Comments:
*Please provide us with your email address in case we need to contact you.
* - required fields