PLUGINS 表提供有关服务器插件的信息。The PLUGINS table provides
information about server plugins.
PLUGINS 表具有以下列:The PLUGINS table has these columns:
PLUGIN_NAME在诸如
INSTALL PLUGIN和UNINSTALL PLUGIN语句中用于引用插件的名称。The name used to refer to the plugin in statements such asINSTALL PLUGINandUNINSTALL PLUGIN.PLUGIN_VERSION来自插件通用类型描述符的版本。The version from the plugin's general type descriptor.
PLUGIN_STATUS插件状态,可以是
ACTIVE、INACTIVE、DISABLED、DELETING或DELETED。The plugin status, one ofACTIVE,INACTIVE,DISABLED,DELETING, orDELETED.PLUGIN_TYPE插件类型,例如
STORAGE ENGINE、INFORMATION_SCHEMA或AUTHENTICATION。The type of plugin, such asSTORAGE ENGINE,INFORMATION_SCHEMA, orAUTHENTICATION.PLUGIN_TYPE_VERSION来自插件类型特定描述符的版本。The version from the plugin's type-specific descriptor.
PLUGIN_LIBRARY插件共享库文件的名称。这个名称用于在诸如
INSTALL PLUGIN和UNINSTALL PLUGIN语句中引用插件文件。该文件位于由plugin_dir系统变量指定的目录中。如果库名称为NULL,则插件已被编译进系统,无法使用UNINSTALL PLUGIN卸载。The name of the plugin shared library file. This is the name used to refer to the plugin file in statements such asINSTALL PLUGINandUNINSTALL PLUGIN. This file is located in the directory named by theplugin_dirsystem variable. If the library name isNULL, the plugin is compiled in and cannot be uninstalled withUNINSTALL PLUGIN.PLUGIN_LIBRARY_VERSION插件 API 接口版本。The plugin API interface version.
PLUGIN_AUTHOR插件作者。The plugin author.
PLUGIN_DESCRIPTION插件的简短描述。A short description of the plugin.
PLUGIN_LICENSE插件的许可方式(例如,
GPL)。How the plugin is licensed (for example,GPL).LOAD_OPTION插件的加载方式。值为
OFF、ON、FORCE或FORCE_PLUS_PERMANENT。参见 第 7.6.1 节,“安装和卸载插件”。How the plugin was loaded. The value isOFF,ON,FORCE, orFORCE_PLUS_PERMANENT. See Section 7.6.1, “Installing and Uninstalling Plugins”.
注意事项Notes
PLUGINS是一个非标准的INFORMATION_SCHEMA表。PLUGINSis a nonstandardINFORMATION_SCHEMAtable.对于使用
INSTALL PLUGIN安装的插件,PLUGIN_NAME和PLUGIN_LIBRARY的值也会在mysql.plugin表中注册。For plugins installed withINSTALL PLUGIN, thePLUGIN_NAMEandPLUGIN_LIBRARYvalues are also registered in themysql.plugintable.有关构成
PLUGINS表信息基础的插件数据结构的信息,请参见 MySQL 插件 API。For information about plugin data structures that form the basis of the information in thePLUGINStable, see The MySQL Plugin API.
插件信息也可以通过 SHOW PLUGINS 语句获取。参见 第 15.7.7.27 节,“SHOW PLUGINS 语句”。这些语句是等价的:Plugin information is also available from the
SHOW PLUGINS statement. See
Section 15.7.7.27, “SHOW PLUGINS Statement”. These statements are equivalent:
SELECT PLUGIN_NAME, PLUGIN_STATUS, PLUGIN_TYPE, PLUGIN_LIBRARY, PLUGIN_LICENSE FROM INFORMATION_SCHEMA.PLUGINS; SHOW PLUGINS;