All pages
Powered by GitBook
1 of 1

Loading...

mysql_kill

Syntax

  • mysql - a mysql handle, which was previously allocated by mysql_init() or mysql_real_connect().

  • long - process id

Description

This function is used to ask the server to kill a MariaDB thread specified by the processid parameter. This value must be retrieved by . If trying to kill the own connection should be used.

Returns 0 on success, otherwise nonzero.

To stop a running command without killing the connection, use . The mysql_kill() function only kills a connection; it doesn't free any memory - this must be done explicitly by calling .

See also

int mysql_kill(MYSQL * mysql,
               unsigned long);
mysql_thread_id()
KILL QUERY
mysql_close()
mysql_thread_id()
mysql_close()
mariadb_cancel()
SHOW PROCESSLIST