Rechercher dans le manuel MySQL
24.4.4 Event Metadata
Metadata about events can be obtained as follows:
Query the
EVENTS
table of theINFORMATION_SCHEMA
database. See Section 25.10, “The INFORMATION_SCHEMA EVENTS Table”.Use the
SHOW CREATE EVENT
statement. See Section 13.7.6.7, “SHOW CREATE EVENT Syntax”.Use the
SHOW EVENTS
statement. See Section 13.7.6.18, “SHOW EVENTS Syntax”.
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
mysql.event
table, 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.
If you select information from mysql.event
, the
times just mentioned are retrieved as UTC values. These times can
also be obtained by selecting from the
INFORMATION_SCHEMA.EVENTS
table or
from SHOW EVENTS
, but they are
reported as ETZ values. Other times available from these sources
indicate when an event was created or last altered; these are
displayed as STZ values. The following table summarizes
representation of event times.
Value | mysql.event |
INFORMATION_SCHEMA.EVENTS |
SHOW EVENTS |
---|---|---|---|
Execute at | UTC | ETZ | ETZ |
Starts | UTC | ETZ | ETZ |
Ends | UTC | ETZ | ETZ |
Last executed | UTC | ETZ | n/a |
Created | STZ | STZ | n/a |
Last altered | STZ | STZ | n/a |
Traduction non disponible
Le manuel MySQL n'est pas encore traduit en français sur l'infobrol. Seule la version anglaise est disponible pour l'instant.
Document créé le 26/06/2006, dernière modification le 26/10/2018
Source du document imprimé : https://www.gaudry.be/mysql-rf-events-metadata.html
L'infobrol est un site personnel dont le contenu n'engage que moi. Le texte est mis à disposition sous licence CreativeCommons(BY-NC-SA). Plus d'info sur les conditions d'utilisation et sur l'auteur.
Références
Ces références et liens indiquent des documents consultés lors de la rédaction de cette page, ou qui peuvent apporter un complément d'information, mais les auteurs de ces sources ne peuvent être tenus responsables du contenu de cette page.
L'auteur de ce site est seul responsable de la manière dont sont présentés ici les différents concepts, et des libertés qui sont prises avec les ouvrages de référence. N'oubliez pas que vous devez croiser les informations de sources multiples afin de diminuer les risques d'erreurs.