mysql的事件默认是关闭的,需要SET GLOBAL event_scheduler = ON; 手动开启 -- 查看事件是否开启 SELECT @@event_scheduler;--手动开启事件SET GLOBAL event_scheduler = ON;