Mysql Event Not Working

前端 未结 9 1791
-上瘾入骨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:12

    I would just like to add to this thread. I dumped my database to another server and as a result the definer of my event had no such grant defined for the user. I updated my definer with

    ALTER DEFINER='root'@'localhost' EVENT event.name COMMENT '';
    

    Make sure your definer has the correct PRIVILEGES.

提交回复
热议问题