Detecting locked tables (locked by LOCK TABLE)

前端 未结 8 1649
野趣味
野趣味 2020-11-29 18:46

Is there a way to detect locked tables in MySQL? I mean tables locked by the LOCK TABLE table WRITE/READ command.

(Note that readers interested in

8条回答
  •  既然无缘
    2020-11-29 19:37

    The simplest way is :

    SHOW OPEN TABLES WHERE In_use > 0
    

    You get the locked tables only of the current database.

提交回复
热议问题