Join Up!
96811 members and counting!

 
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links 
search for in the  
previousmysql_select_dbmysql_tablenamenext
Last updated: Mon, 28 Oct 2002
view the printer friendly version or the printer friendly version with notes or change language to Czech | Finnish | Spanish

mysql_stat

(PHP 4 CVS only)

mysql_stat -- Zeigt den momentanen Serverstatus an

Beschreibung

string mysql_stat ( [resource Verbindungs-Kennung])

mysql_stat() liefert den momentanen Serverstatus zurück.

Anmerkung: mysql_stat() liefert nur die Werte uptime, threads, queries, open tables, flush tables und queries/sec. Für eine komplette Liste der anderen Statusvariablen sollte der SQL-Befehl SHOW STATUS verwendet werden.

Beispiel 1. mysql_stat() Beispiel

$link = mysql_connect("localhost", "mysql_user", "mysql_password");
printf("%s\n", mysql_stat($link));

Das oben gezeigte Beispiel liefert die folgende Ausgabe:
Uptime: 5380  Threads: 1  Questions: 1321299  Slow queries: 1  Opens: 26 Flush tables: 1  Open tables: 17  Queries per second avg: 245.595

User Contributed Notes
mysql_stat
add a note about notes
There are no user contributed notes for this page.
previousmysql_select_dbmysql_tablenamenext
Last updated: Mon, 28 Oct 2002
Copyright © 2001, 2002 The PHP Group
All rights reserved.
This mirror generously provided by: http://phpbuilder.com/
Last updated: Thu Oct 31 18:34:28 2002 EST