PHP
downloads | documentation | faq | getting help | mailing lists | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

mysql_list_tables> <mysql_list_fields
Last updated: Fri, 14 Nov 2008

view this page in

mysql_list_processes

(PHP 4 >= 4.3.0, PHP 5, PECL mysql:1.0)

mysql_list_processesZeigt 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_assoc($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() und mysql_stat().



add a note add a note User Contributed Notes
mysql_list_processes
There are no user contributed notes for this page.

mysql_list_tables> <mysql_list_fields
Last updated: Fri, 14 Nov 2008
 
 
show source | credits | sitemap | contact | advertising | mirror sites