How to check event scheduler status mysql

GorvGoyl picture GorvGoyl · Aug 26, 2016 · Viewed 44.1k times · Source

In MySQL, we can enable the event scheduler by following query:

SET GLOBAL event_scheduler = ON;

Similarly, to turn off the scheduler:

SET GLOBAL event_scheduler = OFF;

But, Is there any query/way to check the status of this event_scheduler whether it's on or off?

Answer

mnv picture mnv · Aug 26, 2016

Use SHOW VARIABLES

SHOW VARIABLES
WHERE VARIABLE_NAME = 'event_scheduler'