Quantcast
Channel: Active questions tagged ubuntu - Stack Overflow
Viewing all articles
Browse latest Browse all 6406

RECURRENT EVENT EVERY 10 MINUTES AND MYSQL [closed]

$
0
0

I need to call a stored procedure every 10 minutes and I am using a recurring event, the problem is that it is not executed or I don't know how I can see if there is an error:

PROCEDURE:

CREATE DEFINER=`root`@`%` PROCEDURE `simertg`.`estados_parqueos`()BEGINset @HORA:= DATE_FORMAT(NOW( ),"%H:%i:00");set @FECHA:= DATE_FORMAT(NOW( ),"%Y-%m-%d");set @ID:=0;select @ID:= estacionamiento_id from Estacionamiento_parqueo where tiempo_salida_t=@HORA and fecha=@FECHA;UPDATE Estacionamiento_usuario_estacionamiento set estado=0 where estacionamiento_id=@ID;END

EVENT:

CREATE EVENT actualizarON SCHEDULE EVERY 10 MINUTESTARTS '2024-07-17 00:00:00.000'ON COMPLETION PRESERVEDISABLE ON SLAVEDO CALL estados_parqueos()

Viewing all articles
Browse latest Browse all 6406


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>