Name
mysql_list_processes
Synopsis
MYSQL_RES *mysql_list_processes(MYSQL *mysql)
Returns a MYSQL_RES
structure containing the
information on all of the threads currently running on the MySQL
database server. This information contained here can be used with
mysql_kill
to remove faulty threads. Like all
MYSQL_RES
structures, the return value of this
function must be freed with mysql_free_result
.
This function returns a null value in the case of an error.
Example
MYSQL_RES threads; threads = mysql_list_processes(&mysql);
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.