MySQL 8.0.37
Source Code Documentation
COM_PROCESS_KILL

Ask the server to terminate a connection

Warning
As of MySQL 5.7.11, COM_PROCESS_KILL is deprecated and will be removed in a future version of MySQL. Instead, use COM_QUERY and a KILL command.

Same as the SQL command KILL <id>.

Payload
TypeNameDescription
int<1> command 0x0C: COM_PROCESS_KILL
int<4> connection_id The connection to kill
Returns
ERR_Packet or OK_Packet
See also
dispatch_command, mysql_kill, sql_kill