MySQL 8 服务器组件

MySQL 服务器包含了一个基于组件的架构,用于扩展服务器功能。服务器和其余组件可使用组件提供的服务。(在使用服务方面,服务器也是一个组件,等同于其余组件)。组件之间交互仅经过他们各自提供的服务。mysql

 

MySQL 服务器包含了若干个组件来扩展服务器功能:sql

Components for configuring error logging.服务器

A component for checking passwords.架构

A component that enables applications to add their own message events to the audit log.app

 

当组件安装后,服务器组件提供了与该组件相关的系统变量和状态变量。引用与该组件相关的变量须要彻底的格式:component_name.variable_name。spa

 

安装与卸载组件插件

INSTALL COMPONENT与UNINSTALL COMPONENT SQL语句能够用来加载和卸载组件,好比 :component

INSTALL COMPONENT 'file://component_validate_password'; it

UNINSTALL COMPONENT 'file://component_validate_password';io

 

注:安装组件相对于安装插件,因为不用考虑文件后缀名,在各个平台都是统一的。

 

获取服务器组件信息:

能够经过mysql.component表获取已加载的组件信息。

相关文章
相关标签/搜索