首頁  >  文章  >  資料庫  >  我們怎麼才能得到所有MySQL事件相關操作的總數呢?

我們怎麼才能得到所有MySQL事件相關操作的總數呢?

WBOY
WBOY轉載
2023-08-27 08:05:21952瀏覽

我們怎麼才能得到所有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)

以上是我們怎麼才能得到所有MySQL事件相關操作的總數呢?的詳細內容。更多資訊請關注PHP中文網其他相關文章!

陳述:
本文轉載於:tutorialspoint.com。如有侵權,請聯絡admin@php.cn刪除