SHOW PLUGINS
SHOW PLUGINS
用于显示 TiDB 中已安装的所有插件,包括每个插件的状态和版本信息。
语法
- ShowPluginsStmt
ShowPluginsStmt ::=
"SHOW" "PLUGINS" ShowLikeOrWhere?
示例
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。