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 zero if the operation was successful and nonzero on failure. You must have Process privileges in the current connection to use this function.

Example

/* Kill thread 4 */
result = mysql_kill(&mysql, 4);

Get MySQL and mSQL 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.