mysql_kill — Asks the server to kill a connection thread.
int mysql_kill(MYSQL * mysql,
unsigned long);This function is used to ask the server to kill a MariaDB thread specified by the processid parameter. This value must be retrieved by SHOW PROCESSLIST or if the own connection should be killed by mysql_thread_id().
mysqlA mysql handle, which was previously allocated by mysql_init() or mysql_real_connect().
longprocess id