event_scheduler是off

http://www.shsay.com

 

sql查询是否打开状态:SHOW VARIABLES LIKE 'event_scheduler'

用脚本来打开:

mysql -u root -p

mysql event_scheduler
开启event_scheduler sql指令:
SET GLOBAL event_scheduler = ON;
SET @@global.event_scheduler = ON;
SET GLOBAL event_scheduler = 1;
SET @@global.event_scheduler = 1;
相反,关闭event_scheduler指令:
 
SET GLOBAL event_scheduler = OFF;
SET @@global.event_scheduler = OFF;
SET GLOBAL event_scheduler = 0;
SET @@global.event_scheduler = 0;

你可能感兴趣的:(mysql)