mysql sleep connections

Solutions on MaxInterview for mysql sleep connections by the best coders in the world

showing results for - "mysql sleep connections"
Maria José
14 May 2017
1SELECT SLEEP(5);    -- 5 seconds
2DO SLEEP(5);		-- same, output available
Helena
15 May 2020
1<?php
2$result = mysql_query("SHOW processlist");
3while ($myrow = mysql_fetch_assoc($result)) {
4if ($myrow['Command'] == "Sleep") {
5mysql_query("KILL {$myrow['Id']}");}
6}
7?>
8