GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
mysql_kill(3) MariaDB Connector/C mysql_kill(3)

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.

mysql - a connection identifier, which was previously allocated by mysql_init(3) and connected by mysql_real_connect(3). Returns 0 on success, otherwise nonzero.
long - process id

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

Returns zero on success, non zero on error.

mysql_thread_id(3)
mysql_close(3)
mariadb_cancel(3)
Version 3.2.2

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.