Scheduling an event every day at a given time
Question
I want my event to run everyday at 00:20. I am confused in scheduling of the time. Should I be using the first option or the second one?
Option 1
CREATE EVENT my_event
ON SCHEDULE
EVERY 1 DAY
STARTS '2014-04-30 00:20:00' ON COMPLETION PRESERVE ENABLE
DO
# My query
Option 2
CREATE EVENT my_event
ON SCHEDULE
AT ('2014-04-30 00:20:00'+ INTERVAL 1 DAY) ON COMPLETION PRESERVE ENABLE
DO
# My query
No correct solution
Licensed under: CC-BY-SA with attribution
Not affiliated with dba.stackexchange