Using DBVisualizer is there any way to run a SQL Script or Command on a timer?

I am using MySQL

link|improve this question
feedback

migrated from stackoverflow.com Jun 29 '11 at 14:57

This question came from our site for professional and enthusiast programmers.

2 Answers

One option is MySQL 5's events (http://dev.mysql.com/doc/refman/5.1/en/create-event.html)

CREATE EVENT event_name ON SCHEDULE EVERY 2 MINUTE DO <SQL query>

The other option is a scheduled task (cron in Linux).

link|improve this answer
feedback

If run a job from cron every two minutes, it means you wouldn't have to have this application loaded/running.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown