Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否设置了我们可以持有此锁的最长时间?
还是永远直到当前事务终止或提交?
如果您使用 InnoDB,该innodb_lock_wait_timeout变量定义了锁在超时之前将等待多长时间。
innodb_lock_wait_timeout
该table_lock_wait_timeout设置记录为“未使用”。
table_lock_wait_timeout