Skip to content

Latest commit

 

History

History
38 lines (27 loc) · 972 Bytes

sql-statement-shutdown.md

File metadata and controls

38 lines (27 loc) · 972 Bytes
title summary aliases
SHUTDOWN
An overview of the usage of SHUTDOWN for the TiDB database.
/docs/dev/sql-statements/sql-statement-shutdown/

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.

Note:

This feature is only applicable to TiDB Self-Managed and not available on TiDB Cloud.

Synopsis

ShutdownStmt ::=
    "SHUTDOWN"

Examples

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 a bug.