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.

SHUTDOWN - 图1

Note

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

Synopsis

ShutdownStmt

SHUTDOWN - 图2

  1. ShutdownStmt ::=
  2. "SHUTDOWN"

Examples

  1. SHUTDOWN;
  1. Query OK, 0 rows affected (0.00 sec)

MySQL compatibility

SHUTDOWN - 图3

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.