借助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事件相关操作的总数呢?的详细内容。