Gold Vision Communications / USA
 GOLDVISION.COM
Serving the Multimedia Community since 1989.
German Site | Spanish Site 

 Web Hosting

 Virtual Dedicated Servers

 Domaincheck

 Order

 Order Status

 Support

 Contact us

 Download

 Network

 Network Status

 Webdesign / Templates

 Make Payment

 Terms & Conditions

 Imprint

 Legal Notices

 Privacy Statement
  PHP / mysql_list_processes
mysql_list_processes

mysql_list_processes

(PHP 4 CVS only)

mysql_list_processes -- Zeigt die MySQL Prozesse an

Beschreibung

resource mysql_list_processes ( [resource Verbindungs-Kennung])

mysql_list_processes() liefert eine Ergebniskennung, die alle laufenden MySQL-Prozesse enthält.

Beispiel 1. mysql_list_processes() Beispiel

<?php
$link = mysql_connect('localhost', 'mysql_user', 'mysql_password');

$result = mysql_list_processes($link);
while ($row = mysql_fetch_row($result)){
    printf("%s %s %s %s %s\n", $row["Id"], $row["Host"], $row["db"],
       $row["Command"], $row["Time"]);
}
mysql_free_result ($result);

Das oben gezeigte Beispiel liefert folgende Ausgabe:
1 localhost test Processlist 0
4 localhost mysql sleep 5

Siehe auch: mysql_thread_id()


© 1998-2007 Gold Vision Communications All Rights Reserved.