Lock wait timeout exceeded; try restarting transaction引數控制
Lock wait timeout exceeded; try restarting transaction
鎖等待超時。。回滾事務。。
當事務1 獲得鎖
start TRANSACTION
update user set username='gh3g' where id=2;#獲得鎖
此時 事務2 開始事務
start TRANSACTION
update user set username='m3mm' where id=2;
此時 過一段時間 就好報一個 鎖等待錯誤
Lock wait timeout exceeded; try restarting transaction
那麼這段時間 是由哪個引數控制的呢。。。。
引數如下
innodb_lock_wait_timeout=50
表示 鎖等待時間50秒。。。50秒內無法獲得鎖 就會產生錯誤
Lock wait timeout exceeded; try restarting transaction
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/30127122/viewspace-2647513/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Lock wait timeout exceeded; try restarting transactionAIREST
- 'Lock wait timeout exceeded; try restarting transaction'問題AIREST
- mysql, Lock wait timeout exceeded; try restarting 解決MySqlAIREST
- ERROR 1205 (HY000): Lock wait timeout exceeded; try restarting transactionErrorAIREST
- MySql報錯:Lock wait timeout exceeded: try restadina transactionMySqlAIREST
- MySQL之wait_timeout和interactive_timeout引數MySqlAI
- Mysql引數解釋---wait_timeout、interactive_timeoutMySqlAI
- 鎖:innodb_lock_wait_timeout和 innodb_rollback_on_timeout?AI
- MySQL更新卡住報錯lock wait timeoutMySqlAI
- interactive_timeout和wait_timeout引數區別和設定策略AI
- Oracle 11g DDL_LOCK_TIMEOUT引數說明Oracle
- ORA-02049: timeout: distributed transaction waiting for lockAI
- MySQL:引數wait_timeout和interactive_timeout以及空閒超時的實現MySqlAI
- mysql死鎖deadlock相關幾個系統變數innodb_lock_wait_timeoutMySql變數AI
- Oracle 11g DDL 的 wait選項(DDL_LOCK_TIMEOUT)OracleAI
- 【YashanDB知識庫】YAS-02024 lock wait timeout, wait time 0 millisecondsAI
- 設定mysql 事務鎖超時時間 innodb_lock_wait_timeoutMySqlAI
- MySQL連線超時相關的兩個引數interactive_timeout和wait_timeout的區別和解釋MySqlAI
- mysql的wait_timeout和interactive_timeoutMySqlAI
- TX鎖(Transaction Lock)分析 (zt)
- oracle中的processes,session,transaction引數OracleSession
- 【MySQL】淺析interactive_timeout和wait_timeoutMySqlAI
- mysqldump --single-transaction引數的作用MySql
- MySQL中wait_timeout的坑MySqlAI
- oracle中的processes,session,transaction引數詳解OracleSession
- 遭遇DFS LOCK HANDLE wait event,AI
- 【Mysql】MySQL中interactive_timeout和wait_timeout的區別MySqlAI
- Oracle 11G ddl_lock_timeoutOracle
- MySQL:connect_timeout引數簡單記錄MySql
- LOCK_NAME_SPACE 引數解決的使用
- MySQL 5.5 -- innodb_lock_wait 鎖 等待MySqlAI
- Job for firewalld.service failed because a timeout was exceeded. See "systemctl status firewalld.serAI
- oracle set transaction read only與dbms_transaction實現事務transaction控制Oracle
- 【11g新特性】DDL_LOCK_TIMEOUT的作用
- 設定 ddl_lock_timeout來避免truncate 報錯
- mongod命令的一些引數以及引數--pidfilepath與mongod.lock區別Go
- sql version count引發cursor:pin s wait x及library cache latch library cache lockSQLAI
- linux程式控制-wait()LinuxAI