1.4 KiB
| sidebar_label | title |
|---|---|
| Connections & Tasks | Manage Connections and Query Tasks |
A system operator can use TDengine CLI to show the connections, ongoing queries, stream computing, and can close connection or stop ongoing query task or stream computing.
Show Connections
SHOW CONNECTIONS;
One column of the output of the above SQL command is "ip:port", which is the end point of the client.
Close Connections Forcedly
KILL CONNECTION <connection-id>;
In the above SQL command, connection-id is from the first column of the output of SHOW CONNECTIONS.
Show Ongoing Queries
SHOW QUERIES;
The first column of the output is query ID, which is composed of the corresponding connection ID and the sequence number of the current query task started on this connection, in format of "connection-id:query-no".
Close Queries Forcedly
KILL QUERY <query-id>;
In the above SQL command, query-id is from the first column of the output of SHOW QUERIES .
Show Continuous Query
SHOW STREAMS;
The first column of the output is stream ID, which is composed of the connection ID and the sequence number of the current stream started on this connection, in the format of "connection-id:stream-no".
Close Continuous Query Forcedly
KILL STREAM <stream-id>;
The above SQL command, stream-id is from the first column of the output of SHOW STREAMS.