开发者

MySQL scheduling an event

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜