我們如何才能同時獲取所有 MySQL 事件相關操作的數量?


藉助 SHOW STATUS 語句,我們能獲取到 MySQL 事件相關操作的數量。可以使用的方式為:

mysql> SHOW STATUS LIKE '%event%';
+--------------------------+-------+
| Variable_name            | Value |
+--------------------------+-------+
| Com_alter_event          | 16    |
| Com_create_event         | 6     |
| Com_drop_event           | 4     |
| Com_show_binlog_events   | 0     |
| Com_show_create_event    | 0     |
| Com_show_events          | 4     |
| Com_show_relaylog_events | 0     |
+--------------------------+-------+
7 rows in set (0.17 sec)

更新於: 22-Jun-2020

117 閱讀次數

開啟你的 職業生涯

透過完成課程獲得認證

開始
廣告
© . All rights reserved.