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_stat
mysql_stat

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


© 1998-2007 Gold Vision Communications All Rights Reserved.