The MySQL Event Scheduler manages the scheduling and execution of events: Tasks that run according to schedule. Event support was added in MySQL 5.1.6. The following discussion covers the Event Scheduler and is divided into the following sections:
Section 19.4.1, “Event Scheduler Overview”, provides an introduction to and conceptual overview of MySQL Events.
Section 19.4.3, “Event Syntax”, discusses the SQL statements for creating, altering, and dropping MySQL Events.
Section 19.4.4, “Event Metadata”, shows how to obtain information about events and how this information is stored by the MySQL Server.
Section 19.4.6, “The Event Scheduler and MySQL Privileges”, discusses the privileges required to work with events and the ramifications that events have with regard to privileges when executing.
Stored routines require the
event table in the
mysql database. This table is created during the
MySQL 5.1 installation procedure. If you are upgrading
to MySQL 5.1 from an earlier version, be sure to update
your grant tables to make sure that the
table exists. See Section 4.4.8, “mysql_upgrade — Check Tables for MySQL Upgrade”.
You may find the MySQL Event Scheduler User Forum of use when working with scheduled events.
There are some restrictions on the use of events; see Section D.1, “Restrictions on Stored Routines, Triggers, and Events”.
Binary logging for events takes place as described in Section 19.6, “Binary Logging of Stored Programs”.