How can I view real-time locks in innodb when information_schema.innodb_locks is not available?
Asked
Active
Viewed 227 times
1
RolandoMySQLDBA
- 182,700
- 33
- 317
- 520
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
- 182,700
- 33
- 317
- 520
autocommit = 1(which is the default. – RolandoMySQLDBA Mar 20 '13 at 00:50