12345678910111213141516171819202122 |
- <?php
- exit;
- require_once '../../main/inc/global.inc.php';
- $result = Database::query("SHOW FULL PROCESSLIST");
- while ($row=Database::fetch_array($result)) {
- $process_id=$row["Id"];
- if ($row["Time"] > 200 ) {
- $sql="KILL $process_id";
- Database::query($sql);
- }
- }
- echo "All queries by this user have been killed".PHP_EOL;
|