8.4 中文镜像

MySQL 8.4 参考手册 · 中文镜像

正文为中文,英文原文默认隐藏。点击任意中文段落即可展开 / 收起对应英文原文。

打开官方英文原文 ↗

译文由机器翻译生成,仅供理解参考;有疑问请以官方英文原文为准。

中文点击中文段落可显示 / 隐藏英文原文本页译文覆盖 100%

7.5 MySQL 组件7.5 MySQL Components

MySQL 服务器包含一个基于组件的基础设施,用于扩展服务器功能。组件提供可供服务器和其他组件使用的服务。(就服务使用而言,服务器本身也是一个组件,与其他组件平等。)组件之间仅通过它们提供的服务进行交互。MySQL Server includes a component-based infrastructure for extending server capabilities. A component provides services that are available to the server and other components. (With respect to service use, the server is a component, equal to other components.) Components interact with each other only through the services they provide.

MySQL 发行版包含多个实现服务器扩展的组件:MySQL distributions include several components that implement server extensions:

组件实现的系统和状态变量在组件安装时会被暴露,并且其名称以特定组件前缀开头。例如,log_filter_dragnet 错误日志过滤器组件实现了一个名为 log_error_filter_rules 的系统变量,其完整名称为 dragnet.log_error_filter_rules。引用此变量时,请使用完整名称。System and status variables implemented by a component are exposed when the component is installed and have names that begin with a component-specific prefix. For example, the log_filter_dragnet error log filter component implements a system variable named log_error_filter_rules, the full name of which is dragnet.log_error_filter_rules. To refer to this variable, use the full name.

以下各节描述了如何安装和卸载组件,以及如何在运行时确定已安装的组件并获取有关它们的信息。The following sections describe how to install and uninstall components, and how to determine at runtime which components are installed and obtain information about them.

有关组件内部实现的信息,请参阅 MySQL 服务器 Doxygen 文档,可通过 https://dev.mysql.com/doc/index-other.html 访问。例如,如果您打算编写自己的组件,这些信息对于理解组件的工作原理非常重要。For information about the internal implementation of components, see the MySQL Server Doxygen documentation, available at https://dev.mysql.com/doc/index-other.html. For example, if you intend to write your own components, this information is important for understanding how components work.