mysql> show status like ‘table%‘;
+-----------------------+---------+
| Variable_name | Value |
+-----------------------+---------+
| Table_locks_immediate | 3544190 |
| Table_locks_waited | 0 |
+-----------------------+---------+
2 rows in set (0.00 sec)
查询表锁争用情况 table_locks_waited & table_locks_immedaite
原文:https://www.cnblogs.com/pansidong/p/14825428.html