Oracle 5.0 Reference Manual page 2411

Table of Contents

Advertisement

The above examples will output:
New Record has id 1.
20.7.3.9.31. mysqli::kill,
Copyright 1997-2012 the PHP Documentation Group. [2230]
mysqli::kill
mysqli_kill
Asks the server to kill a MySQL thread
Description
Object oriented style
bool mysqli::kill(
int processid);
Procedural style
bool mysqli_kill(
mysqli link,
int processid);
This function is used to ask the server to kill a MySQL thread specified by the
This value must be retrieved by calling the
To stop a running query you should use the SQL command
Parameters
link
Return Values
Returns
TRUE
Examples
Example 20.132.
Object oriented style
<?php
$mysqli = new mysqli("localhost", "my_user", "my_password", "world");
/* check connection */
if (mysqli_connect_errno()) {
printf("Connect failed: %s\n", mysqli_connect_error());
exit();
}
/* determine our thread id */
$thread_id = $mysqli->thread_id;
/* Kill connection */
MySQL Improved Extension (Mysqli)
mysqli_kill
Procedural style only: A link identifier returned by
mysqli_connect
on success or
on failure.
FALSE
example
mysqli::kill
function.
mysqli_thread_id
KILL QUERY
or
mysqli_init
2391
parameter.
processid
processid.

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the 5.0 and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Mysql 5.0

Table of Contents