MySQL 9.0 发行说明
有多种方法可以确定服务器中安装了哪些插件。
信息模式
PLUGINS
表包含每个已加载插件的一行。任何PLUGIN_LIBRARY
值为NULL
的插件都是内置的,无法卸载。mysql> TABLE INFORMATION_SCHEMA.PLUGINS\G *************************** 1. row *************************** PLUGIN_NAME: binlog PLUGIN_VERSION: 1.0 PLUGIN_STATUS: ACTIVE PLUGIN_TYPE: STORAGE ENGINE PLUGIN_TYPE_VERSION: 90100.0 PLUGIN_LIBRARY: NULL PLUGIN_LIBRARY_VERSION: NULL PLUGIN_AUTHOR: Oracle Corporation PLUGIN_DESCRIPTION: This is a pseudo storage engine to represent the binlog in a transaction PLUGIN_LICENSE: GPL LOAD_OPTION: FORCE *************************** 2. row *************************** PLUGIN_NAME: sha256_password PLUGIN_VERSION: 1.1 PLUGIN_STATUS: ACTIVE PLUGIN_TYPE: AUTHENTICATION PLUGIN_TYPE_VERSION: 2.1 PLUGIN_LIBRARY: NULL PLUGIN_LIBRARY_VERSION: NULL PLUGIN_AUTHOR: Oracle Corporation PLUGIN_DESCRIPTION: SHA256 password authentication PLUGIN_LICENSE: GPL LOAD_OPTION: FORCE ...
SHOW PLUGINS
语句显示每个已加载插件的一行。任何Library
值为NULL
的插件都是内置的,无法卸载。mysql> SHOW PLUGINS\G *************************** 1. row *************************** Name: binlog Status: ACTIVE Type: STORAGE ENGINE Library: NULL License: GPL *************************** 2. row *************************** Name: sha256_password Status: ACTIVE Type: AUTHENTICATION Library: NULL License: GPL ...
mysql.plugin
表显示已向INSTALL PLUGIN
注册的插件。该表仅包含插件名称和库文件名,因此它没有PLUGINS
表或SHOW PLUGINS
语句提供的信息多。