1. 查看事件状态>>>>>>>>>>>>>>>>>>>>>>>>>>>>
mysql> show variables like 'event%';
+-----------------+-------+
| Variable_name | Value |
+-----------------+-------+
| event_scheduler | OFF |
+-----------------+-------+
1 row in set (0.00 sec)
2. 打开事件计划>>>>>>>>>>>>>>>>>>>>>>>>>>>>
mysql> set global event_scheduler = on;
Query OK, 0 rows affected (0.05 sec)
3. 查询状态>>>>>>>>>>>>>>>>>>>>>>>>>>>>
mysql> show variables like 'even%';+-----------------+-------+
| Variable_name | Value |
+-----------------+-------+
| event_scheduler | ON |
+-----------------+-------+
1 row in set (0.00 sec)