Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. 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

In MySQL 5.6 is there a way to drop all scheduler events with an administrative command or do I have to go through them one by one with DROP EVENT [IF EXISTS] event_name?

share|improve this question
I think you have to use the INFORMATION_SCHEMA.EVENTS table to gather all the active events and then construct and run the DROP EVENT statements. – ypercubeᵀᴹ Jul 3 '13 at 8:28
It looks like this is the only way, so it's scripting time. Thanks – Lefteris Koutsoloukas Jul 3 '13 at 8:48

you can disable them via the following command:

set GLOBAL event_scheduler=0;

or dropping them one by one using the command:

DROP EVENT [IF EXISTS] event_name;
share|improve this answer

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.