Name
mysql_kill —
Synopsis
int mysql_kill(MYSQL *mysql, unsigned long pid)
Attempts to
kill the MySQL server thread with the specified process ID. This
function returns 0 if the operation was successful and nonzero on
failure. You must have Process
privilege in the
current connection to use this function.
The process IDs are part of the process information returned by the
mysql_list_processes
function.
Example
/* Kill thread 4 */ result = mysql_kill(&mysql, 4);
Get Managing & Using MySQL, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.