SHOW PLUGINS
SHOW PLUGINS 显示 TiDB 中已安装的所有插件,包括每个插件的状态和版本信息。
Note
该功能在 平凯数据库云服务 Starter 和 平凯数据库云服务 Essential 实例中不可用。
语法
- ShowPluginsStmt
示例
SHOW PLUGINS;+-------+--------------+-------+-----------------------------+---------+---------+
| Name | Status | Type | Library | License | Version |
+-------+--------------+-------+-----------------------------+---------+---------+
| audit | Ready-enable | Audit | /tmp/tidb/plugin/audit-1.so | | 1 |
+-------+--------------+-------+-----------------------------+---------+---------+
1 row in set (0.000 sec)SHOW PLUGINS LIKE 'a%';+-------+--------------+-------+-----------------------------+---------+---------+
| Name | Status | Type | Library | License | Version |
+-------+--------------+-------+-----------------------------+---------+---------+
| audit | Ready-enable | Audit | /tmp/tidb/plugin/audit-1.so | | 1 |
+-------+--------------+-------+-----------------------------+---------+---------+
1 row in set (0.000 sec)MySQL 兼容性
TiDB 中的 SHOW PLUGINS 语句与 MySQL 完全兼容。如果你发现任何兼容性差异,请报告 bug。