Mysql Event Not Working

前端 未结 9 1804
-上瘾入骨i
-上瘾入骨i 2021-01-30 10:46

I have added the following simple test event on my mysql database via phpmyadmin:

CREATE DEFINER=`root`@`localhost` EVENT `my_event` 
ON SCHEDULE EVERY 1 MINUTE          


        
9条回答
  •  终归单人心
    2021-01-30 11:04

    Events are run by the scheduler, which is not started by default. Using SHOW PROCESSLIST is possible to check whether it is started. If not, run the command

     SET GLOBAL event_scheduler = ON;
    

    to run it.

提交回复
热议问题