Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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.

2 Answers 2

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.