MySQL 事件调度器 管理事件的调度和执行,即按计划运行的任务。以下讨论涵盖事件调度器,并分为以下几个部分:The MySQL Event Scheduler manages the scheduling and execution of events, that is, tasks that run according to a schedule. The following discussion covers the Event Scheduler and is divided into the following sections:
第 27.4.1 节,“事件调度器概述”,提供了 MySQL 事件的介绍和概念性概述。Section 27.4.1, “Event Scheduler Overview”, provides an introduction to and conceptual overview of MySQL Events.
第 27.4.3 节,“事件语法”,讨论了用于创建、修改和删除 MySQL 事件的 SQL 语句。Section 27.4.3, “Event Syntax”, discusses the SQL statements for creating, altering, and dropping MySQL Events.
第 27.4.4 节,“事件元数据”,展示了如何获取有关事件的信息以及 MySQL 服务器如何存储这些信息。Section 27.4.4, “Event Metadata”, shows how to obtain information about events and how this information is stored by the MySQL Server.
第 27.4.6 节,“事件调度器和 MySQL 权限”,讨论了操作事件所需的权限以及在执行事件时事件对权限的影响。Section 27.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.
存储例程需要 events 数据字典表,它位于 mysql 系统数据库中。该表在 MySQL 8.4 安装过程中创建。如果您正在从早期版本升级到 MySQL 8.4,请务必执行升级程序,以确保您的系统数据库是最新的。参见 第 3 章,升级 MySQL。Stored routines require the events data
dictionary table in the mysql system database.
This table is created during the MySQL 8.4 installation
procedure. If you are upgrading to MySQL 8.4 from an
earlier version, be sure to perform the upgrade procedure to make
sure that your system database is up to date. See
Chapter 3, Upgrading MySQL.
其他资源Additional Resources
事件的使用有一些限制;请参见 第 27.8 节,“存储程序的限制”。There are some restrictions on the use of events; see Section 27.8, “Restrictions on Stored Programs”.
事件的二进制日志记录如 第 27.7 节,“存储程序二进制日志记录” 所述进行。Binary logging for events takes place as described in Section 27.7, “Stored Program Binary Logging”.
您也可能会发现 MySQL 用户论坛 很有帮助。You may also find the MySQL User Forums to be helpful.