set global event_scheduler = on;//开启事件
DROP EVENT IF EXISTS test;//删除事件
create event if not exists test //创建事件
on schedule
every 60 second //60秒一个周期
do UPDATE表 set 字段 = 0 WHERE UNIX_TIMESTAMP(LOCALTIME())-UNIX_TIMESTAMP(timedate)>60 and 字段 = 1 //执行的语句
create event if not exists test //创建事件
on schedule
every 60 second //60秒一个周期
do UPDATE表 set 字段 = 0 WHERE UNIX_TIMESTAMP(LOCALTIME())-UNIX_TIMESTAMP(timedate)>60 and 字段 = 1 //执行的语句