Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

I am using MySQL

share|improve this question

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

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

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).

share|improve this answer

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

share|improve this answer

You must log in to answer this question.