-1

I can get event in mysql by

SHOW EVENTS LIKE 'e29'

but it is giving all information. it is like

select * from ....

My need is that i want to get the STATUS of a particular event

Suresh Kamrushi
  • 15,627
  • 13
  • 75
  • 90
Govind Singh
  • 15,282
  • 14
  • 72
  • 106

2 Answers2

1

Show events is not a regular statement that returns a cursor to read on.

You have to query information_schema.events to know status of an event.

mysql> select event_name, status -- from events where event_name =
    -> from information_schema.events where event_name = 'event_scheduling_sample';
+-------------------------+---------+
| event_name              | status  |
+-------------------------+---------+
| event_scheduling_sample | ENABLED |
+-------------------------+---------+
1 row in set (0.01 sec)
Govind Singh
  • 15,282
  • 14
  • 72
  • 106
Ravinder Reddy
  • 23,692
  • 6
  • 52
  • 82
0

You can also use

select @@event_scheduler;

to show the status.

Marco Bonelli
  • 63,369
  • 21
  • 118
  • 128
Reign.85
  • 2,420
  • 1
  • 28
  • 28