Mysql定时任务

create event if not exists e_test    

on schedule every 6 hour//每6小时执行一次存储过程

do call echarts();  

查看定时任务是否开启

show VARIABLES LIKE '%sche%'

event_scheduler是off或者0表示定时任务没有开启。

SET GLOBAL event_scheduler = 1;//开启定时任务

配置后重启mysql

posted @ 2019-10-10 11:02  艺洁  阅读(138)  评论(0编辑  收藏  举报