Skip to content

Latest commit

 

History

History
57 lines (40 loc) · 1.57 KB

sql-statement-show-plugins.md

File metadata and controls

57 lines (40 loc) · 1.57 KB
title summary category
SHOW PLUGINS
TiDB 数据库中 SHOW PLUGINS 的使用概况。
reference

SHOW PLUGINS

SHOW PLUGINS 用于查看 TiDB 安装的插件,各个插件运行的状态以及插件版本信息。

语法图

ShowStmt:

ShowStmt

ShowTargetFilterable:

ShowTargetFilterable

示例

{{< copyable "sql" >}}

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 也支持模糊匹配:

{{< copyable "sql" >}}

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 兼容性

SHOW PLUGINS 语句与 MySQL 完全兼容。如有任何兼容性差异,请在 GitHub 上提交 issue