MySQL定时任务
时间:2021-07-01 10:21:17
帮助过:2人阅读
DEFINER
=`user`@`localhost` EVENT
`event_name`ON SCHEDULEEVERY 5 SECOND STARTS ‘2016-10-01‘ ENDS ‘2020-10-01‘ON COMPLETION PRESERVEENABLECOMMENT ‘备注信息‘DO begin#SQL;commit;
end
查看定时任务是否开启:SHOW VARIABLES LIKE ‘event_scheduler‘;
定时任务不执行,就需要开启任务:set global event_scheduler = on;
来自为知笔记(Wiz)
MySQL定时任务
标签: