“删除查询”无法完成

我有一个非常简单的mysql脚本正在运行。 但它挂起,并永远运行,没有完成。 什么是可能的原因,我该如何解决呢?

delete from guid_target_infos where type_id = 1 and updated_at < '2010-03-14' limit 1

更新:显示进程列表

 | 93 | mysql | localhost | TwAnalyzer_dev | Query | 257 | updating | delete from guid_target_infos where type_id = 1 and updated_at < '2010-03-14' limit 1 | 

(一切 – 命令是睡觉,信息是空的)

你可以尝试show table status <tablename>; 看看有没有什么exception

http://dev.mysql.com/doc/refman/5.1/en/show-table-status.html

如果您的存储引擎是innodb,请尝试增加my.cnf中的innodb_lock_wait_timeout

你有没有尝试没有limit 1