mysql_stat

PHP 4 >= 4.3.0, PHP 5
mysql_stat - Get current system status
Manual
Code Examples

mysql_stat( [resource$link_identifier = NULL] ): string

mysql_stat returns the current server status.

Parameters

link_identifier

The MySQL connection. If the link identifier is not specified, the last link opened by mysql_connect is assumed. If no such link is found, it will try to create one as if mysql_connect had been called with no arguments. If no connection is found or established, an E_WARNING level error is generated.

Return Values

Returns a string with the status for uptime, threads, queries, open tables, flush tables and queries per second. For a complete list of other status variables, you have to use the SHOW STATUS SQL command. If link_identifier is invalid, null is returned.

Related Functions

Example of mysql_stat

Show all examples for mysql_stat

PHP Version: