MySQL之表lock信息

1.切換到information_schema database中,以下mysql

    List-1sql

mysql> select database();
+--------------------+
| database()         |
+--------------------+
| information_schema |
+--------------------+
1 row in set (0.00 sec)

2.show tables命令能夠查看到bash

    List-2code

| INNODB_TRX                            |
| INNODB_LOCKS                          |
| INNODB_LOCK_WAITS                     |

    List-2中的這幾個表與InnoDB的事物、鎖、鎖等待有關。orm

    這幾個表中的數據,只有有應用調用MySQL時纔會看到。io

相關文章
相關標籤/搜索