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
- Lock wait timeout exceeded; try restarting transactionAIREST
- Python 操作 mysql 資料庫,wait_timeout 後報什麼錯誤PythonMySql資料庫AI
- Lock wait timeout exceeded; try restarting transaction引數控制AIREST
- 設定mysql 事務鎖超時時間 innodb_lock_wait_timeoutMySqlAI
- 【YashanDB知識庫】YAS-02024 lock wait timeout, wait time 0 millisecondsAI
- MySQL中wait_timeout的坑MySqlAI
- 【Mysql】MySQL中interactive_timeout和wait_timeout的區別MySqlAI
- MySQL之wait_timeout和interactive_timeout引數MySqlAI
- mysql死鎖deadlock相關幾個系統變數innodb_lock_wait_timeoutMySql變數AI
- MySQL:引數wait_timeout和interactive_timeout以及空閒超時的實現MySqlAI
- MySql報錯(持續更新)MySql
- ORA-04021: timeout occurred while waiting to lock objectWhileAIObject
- Linux報錯:Could not get lock /var/lib/dpkg/lock-frontendLinux
- 報錯(已解決)Command timed out after no timeout
- Springboot 連線池wait_timeout超時設定Spring BootAI
- Nginx報504 gateway timeout錯誤的解決方法NginxGateway
- RocketMQ報錯:rocketmq.remoting.exception.RemotingTooMuchRequestException: sendDefaultImpl call timeoutMQREMExceptionOOM
- Oracle Enqueues Wait Events 三 enq: TX - row lock contentionOracleENQAI
- mysql lock操作MySql
- Tomcat啟動時Initializing Spring FrameworkServlet 'springmvc'卡住,並且不報錯TomcatFrameworkServletSpringMVC
- MySQL的timeout那點事MySql
- win10系統更新卡住了怎麼辦_win10更新卡住不動解決方法Win10
- MySQL:理解MDL LockMySql
- mysql innodb lock鎖之record lock之一MySql
- DBeaver、Navicat、MySQL高頻報錯及解決方法,此文持續更新MySql
- Springboot 啟動時不報錯一直卡住,{dataSource-1} initedSpring Boot
- Mysql8.0 報錯MySql
- ubuntu更新報錯Hash Sum mismatchUbuntu
- win10清理更新檔案總是卡住怎麼辦 win10清理更新檔案卡住處理方法Win10
- mysql執行報錯mysql.sockMySql
- java併發程式設計之wait¬ify VS lock&amJava程式設計AI
- mysql MASTER_POS_WAIT函式MySqlASTAI函式
- mysql checksum 報錯問題。MySql
- mysql 報錯 Communications link failureMySqlAI
- MySQL:Innodb 讓MDL LOCK和ROW LOCK 記錄到errlogMySql
- sudo apt update時報錯 E: Unable to lock directory /var/lib/apt/lists/APT