Important

You are viewing the documentation of TiDB v6.0 (DMR). PingCAP does not provide bug fixes for v6.0. Any bugs will be fixed in future releases.

For general purposes, please use the latest LTS version of the TiDB database.

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

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 the issues on GitHub.

Was this page helpful?