autocommit=0引發的業務hang住

背景mysql 有用戶報告一個普通的select 語句被hang住了,執行超時。查明以後發現是autocommit使用不當致使。 這裏將case簡化,說明覆現步驟及緣由。 復現sql session1 建表並插入數據: create table if not exists t(id int primary key, c int); set autocommit=0; insert into t
相關文章
相關標籤/搜索