定时事件<p><strong>开启事件</strong></p> <pre><code>set global event_scheduler = on;</code></pre> <p><strong>查询事件是否开启</strong></p> <pre><code>show variables like 'event_scheduler';</code></pre>