diff --git a/TOC.md b/TOC.md index 793df72f0cf98..dba13b37178e7 100644 --- a/TOC.md +++ b/TOC.md @@ -272,6 +272,7 @@ + [`SHOW INDEX [FROM|IN]`](/sql-statements/sql-statement-show-index.md) + [`SHOW INDEXES [FROM|IN]`](/sql-statements/sql-statement-show-indexes.md) + [`SHOW KEYS [FROM|IN]`](/sql-statements/sql-statement-show-keys.md) + + [`SHOW PLUGINS`](/sql-statements/sql-statement-show-plugins.md) + [`SHOW PRIVILEGES`](/sql-statements/sql-statement-show-privileges.md) + [`SHOW [FULL] PROCESSSLIST`](/sql-statements/sql-statement-show-processlist.md) + [`SHOW SCHEMAS`](/sql-statements/sql-statement-show-schemas.md) diff --git a/sql-statements/sql-statement-show-plugins.md b/sql-statements/sql-statement-show-plugins.md new file mode 100644 index 0000000000000..565f83606cc07 --- /dev/null +++ b/sql-statements/sql-statement-show-plugins.md @@ -0,0 +1,55 @@ +--- +title: SHOW PLUGINS +summary: An overview of the usage of SHOW PLUGINS for the TiDB database. +category: reference +--- + +# SHOW PLUGINS + +`SHOW PLUGINS` shows all plugins installed in TiDB, including each plugin's status and version information. + +## Synopsis + +**ShowStmt:** + +![ShowStmt](/media/sqlgram/ShowStmt.png) + +**ShowTargetFilterable:** + +![ShowTargetFilterable](/media/sqlgram/ShowTargetFilterable.png) + +## Examples + +{{< copyable "sql" >}} + +```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) +``` + +{{< copyable "sql" >}} + +```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 compatibility + +This statement is understood to be fully compatible with MySQL. Any compatibility differences should be [reported via an issue](/report-issue.md) on GitHub.