SHOW PLUGINS

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

语法图

ShowPluginsStmt

SHOW PLUGINS - 图1

  1. ShowPluginsStmt ::=
  2. "SHOW" "PLUGINS" ShowLikeOrWhere?

示例

  1. SHOW PLUGINS;
  1. +-------+--------------+-------+-----------------------------+---------+---------+
  2. | Name | Status | Type | Library | License | Version |
  3. +-------+--------------+-------+-----------------------------+---------+---------+
  4. | audit | Ready-enable | Audit | /tmp/tidb/plugin/audit-1.so | | 1 |
  5. +-------+--------------+-------+-----------------------------+---------+---------+
  6. 1 row in set (0.000 sec)

SHOW PLUGINS 也支持模糊匹配:

  1. SHOW PLUGINS LIKE 'a%';
  1. +-------+--------------+-------+-----------------------------+---------+---------+
  2. | Name | Status | Type | Library | License | Version |
  3. +-------+--------------+-------+-----------------------------+---------+---------+
  4. | audit | Ready-enable | Audit | /tmp/tidb/plugin/audit-1.so | | 1 |
  5. +-------+--------------+-------+-----------------------------+---------+---------+
  6. 1 row in set (0.000 sec)

MySQL 兼容性

SHOW PLUGINS 语句与 MySQL 完全兼容。如发现任何兼容性差异,请尝试 TiDB 支持资源

扩展阅读