mysql_kill
- Provided by: libmariadb-dev (Version: 1:10.11.14-0ubuntu0.24.04.1)
- Source: mariadb
- Report a bug
mysql_kill - Kills a connection
#include <mysql.h>
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()](SHOW PROCESSLIST]]. If trying to kill the own connection mysql_thread_id(3) should be used.
Returns zero on success, non zero on error.