MySQL calls stored procedure every x minutes

Is there a way in MySQL to call a stored procedure from SQL every x minutes?

I want to use this in a session environment where the database keeps track of all sessions and automatically deletes sessions older than x minutes.

+2


source to share


1 answer


Use MySQL Events , it was introduced in version 5.1.



+3


source







All Articles