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

search for in the

mysql_list_tables> <mysql_list_fields
Last updated: Fri, 27 Jun 2008

view this page in

mysql_list_processes

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

mysql_list_processes — Elenca i processi MySQL

Descrizione

resource mysql_list_processes ([ resource $ identificativo_connessione ] )

mysql_list_processes() restituisce un risultato puntatore che descrive i thread attuali del server.

Example #1 Esempio di mysql_list_processes()

<?php
$connessione 
mysql_connect('localhost''utente_mysql''password_mysql');

$risultato mysql_list_processes($connessione);
while (
$riga mysql_fetch_row($risultato)){
    
printf("%s %s %s %s %s\n"$riga["Id"], $riga["Host"], $riga["db"],
       
$riga["Command"], $riga["Time"]);
}
mysql_free_result ($risultato);
?>

L'esempio riportato sopra dovrebbe produrre il seguente output:

1 localhost test Processlist 0
4 localhost mysql sleep 5

Vedere anche: mysql_thread_id()



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, 27 Jun 2008
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites