开发者

MySQL scheduling an event

开发者 https://www.devze.com 2023-01-14 01:19 出处:网络
I tried with this syntax but it never transferred the data. CREATE EVENT event_test1 ON SCHEDULE EVERY 1 MINUTE STARTS \'2010-09-02 15:19:25\'

I tried with this syntax but it never transferred the data.

CREATE EVENT event_test1 
ON SCHEDULE EVERY 1 MINUTE STARTS '2010-09-02 15:19:25' 
ON COMPLETION NOT PRESERVE ENABLE DO 
    insert into schema2.table1 (ID) select ID from schema1.table1 Limit 1000

I don't see the o/p 开发者_C百科in the table1 of schema2, what did i miss?


Did you turn events on?

SET GLOBAL event_scheduler = 'ON';

Also, the SHOW EVENTS command will show you if the event is there and running.

0

精彩评论

暂无评论...
验证码 换一张
取 消