Tuer une liste de processus mysql
$result = mysql_query(« SHOW FULL PROCESSLIST »);
while ($row=mysql_fetch_array($result)) {
$process_id=$row["Id"];
if ($row["Time"] > 200 ) {
$sql= »KILL $process_id »;
mysql_query($sql);
}
}
This entry was posted
on Mardi, février 2nd, 2010 at 17 h 40 min and is filed under Développement.
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.