0
I created an event in mysql so that every day on time 00:05:00 Starting on 07/18/2021, it performs an update on a table, only it is not running at the given time, what might be happening? Follow the script I used to create the Event
OBS.: He even made the first execution (the day I created the event), but did not repeat in the other days, even configured as a recurring event.
CREATE DEFINER=`root`@`localhost` EVENT `EventStatusUpdate`
ON SCHEDULE
EVERY 24 HOUR STARTS '2021-07-18 00:05:00'
ON COMPLETION PRESERVE
ENABLE
COMMENT ''
DO BEGIN
UPDATE usuario
SET status = 1
WHERE status = 0;
END
Mysql is not my strong suit, but I suggest you take a closer look at the documentation CREATE EVENT Statement mainly in relation to
CURRENT_TIMESTAMP
– gleisin-dev
Thanks for replying @gleisin-dev, had already checked this and also Timezone are correct.
– Adriano