Answers for "mysql connection Sleep"

SQL
0

mysql sleep

SELECT SLEEP(5);    -- 5 seconds
DO SLEEP(5);		-- same, output available
Posted by: Guest on April-17-2021
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