Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

mysql sleep connections

<?php
$result = mysql_query("SHOW processlist");
while ($myrow = mysql_fetch_assoc($result)) {
if ($myrow['Command'] == "Sleep") {
mysql_query("KILL {$myrow['Id']}");}
}
?>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #mysql #sleep #connections
ADD COMMENT
Topic
Name
1+1 =