Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions TOC.md
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,7 @@
+ [`SHOW [FULL] TABLES`](/sql-statements/sql-statement-show-tables.md)
+ [`SHOW [GLOBAL|SESSION] VARIABLES`](/sql-statements/sql-statement-show-variables.md)
+ [`SHOW WARNINGS`](/sql-statements/sql-statement-show-warnings.md)
+ [`SHUTDOWN`](/sql-statements/sql-statement-shutdown.md)
+ [`SPLIT REGION`](/sql-statements/sql-statement-split-region.md)
+ [`START TRANSACTION`](/sql-statements/sql-statement-start-transaction.md)
+ [`TRACE`](/sql-statements/sql-statement-trace.md)
Expand Down
35 changes: 35 additions & 0 deletions sql-statements/sql-statement-shutdown.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
title: SHUTDOWN
summary: An overview of the usage of SHUTDOWN for the TiDB database.
category: reference
---

# SHUTDOWN

The `SHUTDOWN` statement is used to perform a shutdown operation in TiDB. Execution of the `SHUTDOWN` statement requires the user to have `SHUTDOWN privilege`.

## Synopsis

**Statement:**

![Statement](/media/sqlgram/ShutdownStmt.png)

## Examples

{{< copyable "sql" >}}

```sql
SHUTDOWN;
```

```
Query OK, 0 rows affected (0.00 sec)
```

## MySQL compatibility

> **Note:**
>
> Because TiDB is a distributed database, the shutdown operation in TiDB stops the client-connected TiDB instance, not the entire TiDB cluster.

The `SHUTDOWN` statement is partly compatible with MySQL. If you encounter any compatibility issues, you can report the issues [on GitHub](/report-issue.md).