原文:http://www.cnblogs.com/freeliver54/archive/2010/09/30/1839042.html
原因是你使用的InnoDB 表类型的时候,
默认参数:innodb_lock_wait_timeout设置锁等待的时间是50s,
因为有的锁等待超过了这个时间,所以抱错.
你可以把这个时间加长,或者优化存储过程,事务避免过长时间的等待.
my.ini文件:
#innodb_lock_wait_timeout = 50
-》
innodb_lock_wait_timeout = 500
重启mysql服务。
另外一种原因是,Connection对象AutoCommit设置的为false,且在修改某行数据后没有手动commit又再次修改这行数据,导致lock超时。
相关推荐
解决SQLSTATE[HY000]: General error: 1205 Lock wait timeout exceeded
KFC系列之 - Oracle DBA入门Mysql(中)
ERROR 1290 (HY000): The MySQL server is running with the --skip-grant-tables option so it cannot execute this statement mysql> flush privileges; Query OK, 0 rows affected (0.00 sec) mysql> mysql
最近做的程序中涉及到的循环比较多且处理的情况较复杂,在运行程序时出现执行超时提示如下:Fatal error: Maximum execution time of 30 seconds exceeded in D:phpAppServwwwsum3test.php on line 3通过在网上搜索...
报错:Job for sshd.service failed because a timeout was exceeded. See "systemctl status sshd.service" and "journalctl -xe" for details. 问题2:程序sftp登陆不上 低版本的连接工具无法连接,现有程序sftp到...
How to Investigate Timeouts In Synchronous XI PI 如何解决PI超时问题
背景介绍 ...因为这种情况特别多而且繁琐,所以很多语言都有各种自己的实现。最初的第一个 Expect 是由 TCL 语言实现的,所以后来的 Expect 都大致参考了最初的用法和流程,整体来说大致的流程包括: ...
php日志中有一条超时的日志,但是我request_terminate_timeout中设置的是0,理论上应该没有超时时间才对。 PHP Fatal error: Maximum execution time of 30 seconds exceeded in ... The timeout for serving a single
Kudu :Service unavailable: Soft memory limit exceeded at xxx% of capacity 3.原因 内存限制问题(Memory Limits): Kudu都有一个硬性和软性的内存限制。 硬存储器限制是Kudu进程允许使用的最大数量,由--...
本篇文章是对解决PHP mysql_query执行超时(Fatal error: Maximum execution time of 300 seconds exceeded in…)的问题进行了详细的分析介绍,需要的朋友参考下
func_timeout Python模块支持以给定的超时时间运行任何现有功能。... Raises any exceptions #func# would raise, returns what #func# would return (unless timeout is exceeded), in which case it raises Functi
在另一方释放资源前,会话1和会话2都不可能继续。所以,SQL Server会选择死锁中的一个会话作为“死锁牺牲品”。 注意:死锁牺牲品的会话会被杀死,事务会被回滚。 注意:死锁与正常的阻塞是两个经常被混淆的概念。...
saber入门实验指导书,很好的saber入门级资料。
背景 最新有同事反馈,服务间有调用超时的现象,在业务高峰期发生的...Post http://host/v1/xxxx: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers) 通知日
mod_odbc_cdr是freeswitch的一个模块,该模块负责将话单实时写入mysql数据库。按照设计话单将在写入数据库失败时,写入本地文本文件,但是测试时发现该功能无法满足。经修改、测试无误,特此分享。
每在页面中上传较大的文件时遇到FastCgi的错误:“The FastCGI process exceeded configured request timeout”,几经试验,明白了需要修改FastCgi的配置文件“fcgiext.ini”,位于目录“C:/WINDOWS/system32/...
递归 precursion –避免RecursionError: maximum recursion depth exceeded Python模块RecursionError: maximum recursion depth exceeded轻松RecursionError: maximum recursion depth exceeded用法好的,让我们...
error: [Error: Exceeded maxRedirects. Probably stuck in a redirect loop http://127.0.0.1:8681/8] > node req.js 9 (node) warning: possible EventEmitter memory leak detected. 11 listeners added. Use ...
主要介绍了详解 Java Maximum redirects (100) exceeded的相关资料,需要的朋友可以参考下