0
I need a Stored Procedure to be called every day at 11:59 pm but I’ve tried a few ways and when it arrives at that time it doesn’t perform!
CREATE EVENT `ATUALIZARDADOS` ON SCHEDULE
EVERY 1 DAY STARTS '2017-11-16 23:59:00' ON COMPLETION PRESERVE
DO
begin
CALL MULTAOFF();
CALL RESERVAOFF();
INSERT INTO configuracao (id,DiasMulta,DiasLivroMaior,DiasLivroMenor)
values ('8','2','3','4');
end &&
delimiter ;
detail, this excerpt was only so I can know if the event is working or not)
INSERT INTO configuracao (id,DiasMulta,DiasLivroMaior,DiasLivroMenor)
values ('8','2','3','4');
someone can help me with this problem?
Checked if you have sufficient privileges to schedule an event? If you have done so here
SET GLOBAL event_scheduler = ON;
before using the event scheduler?– Augusto Vasques