How can I view real-time locks in innodb when information_schema.innodb_locks is not available?
Asked
Active
Viewed 193 times
1
RolandoMySQLDBA
- 171,728
- 30
- 293
- 486
1 Answers
0
The quick way to see it is to run SHOW ENGINE INNODB STATUS\G
You will see
- exclusive locks
- shared locks
- corresponding queries
- number of read IO thread in use
- number of write IO thread in use
Here are some sample questions I answered that uses the output of SHOW ENGINE INNODB STATUS\G
- Will these two queries result in a deadlock if executed in sequence?
- Trouble deciphering a deadlock in an innodb status log
Give it a Try !!!
RolandoMySQLDBA
- 171,728
- 30
- 293
- 486
-
Please keep in mind that a single INSERT, UPDATE, or DELETE is itself a transaction when `autocommit = 1` (which is the default. – RolandoMySQLDBA Mar 20 '13 at 00:50
-
Yes, I am referring to locks in the TRANSACTION sections. – RolandoMySQLDBA Mar 20 '13 at 00:51