Print MySQL processes information : MySQL Processes : MySQL Database PHP Source Code


PHP Source Code » MySQL Database » MySQL Processes »

 

Print MySQL processes information




<?php

   mysql_connect("mysql153.secureserver.net","navioo","password");
   $processes = mysql_list_processes();
   echo "<table>";
   echo "<tr><th>ID</th><th>User</th><th>Host</th><th>DB</th>
      <th>Command</th><th>Time</th><th>State</th><th>Info</th>
      </tr>";

   while ($row = mysql_fetch_row($processes)) {
      list($id,$user,$host,$db,$command,$time,$state,$info= $row;
      echo "<tr><td>$id</td><td>$user</td>
         <td>$host</td><td>$db</td><td>$command</td>
         <td>$time</td><td>$state</td><td>$info</td>
         </tr>";
   }

   echo "</table>";

?>

           
       



HTML code for linking to this page:

Follow Navioo On Twitter

PHP Source Code

 Navioo MySQL Database
» MySQL Processes