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

原文地址:https://www.cnblogs.com/yyjspace/p/11646623.html