How to execute MySQL query after 1 minute I have a query, but I want to call it now and wish it to be executed after few mins and seconds. Please note: I don't want to use SLEEP(), as it 'freezes' the entire database. I want one of the queries to be delayed while I perform the others queries in a default manner.

Small example that doesn't works:

WAITFOR DELAY '00:00:10'
update users set 'id' = 10 where `id` &gt; 5


WAITFOR DELAY is a SQL Server command

How do I solve this problem?
You could create an event.

Rather than SLEEP in the same statement as an update try: 'SELECT SLEEP(360); UPDATE ....'.