MySQL更新卡住報錯lock wait timeout
MySQL更新卡住報錯lock wait timeout
先查資料庫有沒鎖:
select * from information_schema.innodb_trx
select * from information_schema.innodb_locks
select * from information_schema.innodb_lock_waits
有所就把鎖的程式殺了。
如果沒有鎖,檢視有沒未提交事務。
-- 從 information_schema.innodb_trx 表中檢視當前未提交的事務
select trx_state, trx_started, trx_mysql_thread_id, trx_query from information_schema.innodb_trx;
-- trx_mysql_thread_id:MySQL的執行緒ID,用於kill
kill 2199075;
kill 25650928;
殺掉未提交事務,問題解決。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/22996654/viewspace-2899030/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- MySql報錯:Lock wait timeout exceeded: try restadina transactionMySqlAIREST
- mysql, Lock wait timeout exceeded; try restarting 解決MySqlAIREST
- 鎖:innodb_lock_wait_timeout和 innodb_rollback_on_timeout?AI
- Lock wait timeout exceeded; try restarting transactionAIREST
- 設定 ddl_lock_timeout來避免truncate 報錯
- Python 操作 mysql 資料庫,wait_timeout 後報什麼錯誤PythonMySql資料庫AI
- 設定mysql 事務鎖超時時間 innodb_lock_wait_timeoutMySqlAI
- 'Lock wait timeout exceeded; try restarting transaction'問題AIREST
- mysql的wait_timeout和interactive_timeoutMySqlAI
- Lock wait timeout exceeded; try restarting transaction引數控制AIREST
- 【MySQL】淺析interactive_timeout和wait_timeoutMySqlAI
- 【Mysql】MySQL中interactive_timeout和wait_timeout的區別MySqlAI
- MySQL中wait_timeout的坑MySqlAI
- MySQL之wait_timeout和interactive_timeout引數MySqlAI
- Mysql引數解釋---wait_timeout、interactive_timeoutMySqlAI
- mysql死鎖deadlock相關幾個系統變數innodb_lock_wait_timeoutMySql變數AI
- Oracle 11g DDL 的 wait選項(DDL_LOCK_TIMEOUT)OracleAI
- MySql報錯(持續更新)MySql
- MySQL 5.5 -- innodb_lock_wait 鎖 等待MySqlAI
- 【YashanDB知識庫】YAS-02024 lock wait timeout, wait time 0 millisecondsAI
- ERROR 1205 (HY000): Lock wait timeout exceeded; try restarting transactionErrorAIREST
- Mysql報錯Fatal error:Can't open and lock privilege tablesMySqlError
- mysql: __lll_mutex_lock_wait出現的分析MySqlMutexAI
- MySQL:引數wait_timeout和interactive_timeout以及空閒超時的實現MySqlAI
- mysql timeoutMySql
- 遭遇DFS LOCK HANDLE wait event,AI
- Oracle 11G ddl_lock_timeoutOracle
- MySQL Timeout解析MySql
- Linux報錯:Could not get lock /var/lib/dpkg/lock-frontendLinux
- interactive_timeout和wait_timeout引數區別和設定策略AI
- MySQL連線超時相關的兩個引數interactive_timeout和wait_timeout的區別和解釋MySqlAI
- Nginx報504 gateway timeout錯誤的解決方法NginxGateway
- kafka啟動報錯:kafka.common.KafkaException: Failed to acquire lock on file .lockKafkaExceptionAIUI
- win10系統更新卡住了怎麼辦_win10更新卡住不動解決方法Win10
- 報錯(已解決)Command timed out after no timeout
- 【11g新特性】DDL_LOCK_TIMEOUT的作用
- RocketMQ報錯:rocketmq.remoting.exception.RemotingTooMuchRequestException: sendDefaultImpl call timeoutMQREMExceptionOOM
- mysql lock操作MySql