content_image/749787.jpg content_image/749793.jpg
•Query the EVENTS  table of the INFORMATION_SCHEMA  database. See Section 26.3.14, “The INFORMATION_SCHEMA EVENTS Table” . 

•Use the SHOW CREATE EVENT  statement. See Section 13.7.7.7, “SHOW CREATE EVENT Statement” . 

•Use the SHOW EVENTS  statement. See Section 13.7.7.18, “SHOW EVENTS Statement” . 

## Event Scheduler Time Representation 

Each session in MySQL has a session time zone (STZ). This is the session time_zone  value that is initialized from the server’s global time_zone  value when the session begins but may be changed during the session. 

The session time zone that is current when a CREATE EVENT  or ALTER EVENT  statement executes is used to interpret times specified in the event definition. This becomes the event time zone (ETZ); that is, the time zone that is used for event scheduling and is in effect within the event as it executes. 

For representation of event information in the data dictionary, the execute_at , starts , and ends  times are converted to UTC and stored along with the event time zone. This enables event execution to proceed as defined regardless of any subsequent changes to the server time zone or daylight saving time effects. The last_executed  time is also stored in UTC. 

Event times can be obtained by selecting from the INFORMATION_SCHEMA.EVENTS  table or from SHOW EVENTS , but they are reported as ETZ or STZ values. The following table summarizes representation of event times. 

<img src='content_image/749787.jpg'>

## 25.4.5 Event Scheduler Status 

The Event Scheduler writes information about event execution that terminates with an error or warning to the MySQL Server’s error log. See Section 25.4.6, “The Event Scheduler and MySQL Privileges”  for an example. 

To obtain information about the state of the Event Scheduler for debugging and troubleshooting purposes, run mysqladmin debug  (see Section 4.5.2, “mysqladmin — A MySQL Server Administration Program” ); after running this command, the server’s error log contains output relating to the Event Scheduler, similar to what is shown here: 

Events status: LLA = Last Locked At LUA = Last Unlocked At WOC = Waiting On Condition DL = Data Locked 

<img src='content_image/749793.jpg'>

