Answers for "mysql connection sleep state"

SQL
0

mysql sleep connections

<?php
$result = mysql_query("SHOW processlist");
while ($myrow = mysql_fetch_assoc($result)) {
if ($myrow['Command'] == "Sleep") {
mysql_query("KILL {$myrow['Id']}");}
}
?>
Posted by: Guest on February-18-2021

Code answers related to "SQL"

Browse Popular Code Answers by Language