I would like to know whether there is an option to detect locked tables in mysql or not. I mean locked by LOCK TABLE table WRITE/READ command?
| 
 | 
| You can‘t for non-named locks! More info: http://forums.mysql.com/read.php?21,222363,223774#msg-223774 
 | ||||
| You can use  | |||
| Use  You can do something like this to check any locked tables in a database. | |||||
| 
 | 
| You can create your own lock with GET_LOCK(lockName,timeOut) If you do a  However this won‘t work if you don‘t have all threads calling  Hope that helps! | |||||||||
| 
 | 
| This article describes how to get information about locked MySQL resources.  | |||||||||
| 
 | 
 
        


 
