In MySQL, the event_scheduler system variable is used to start and stop the Event Scheduler, as well as enable or disable it.
At runtime we can set the value to ON or OFF, and we can check the current value of the variable. We can also disable the Event Scheduler at server startup, but we can’t do this at runtime. However, we can still check the event_scheduler variable to see whether it’s enabled or disabled.