php的一些辅助函数:
mysql_client_encoding()
mysql_get_server_info()
mysql_get_host_info()
mysql_get_client_info()
mysql_stat()
举例:
结果:
字符集的名称: latin1
mysql服务器信息: 5.1.34-community
mysql主机信息: localhost via TCP/IP
mysql客户机信息: 5.0.51a
当前系统的状态: Uptime: 2539 Threads: 1 Questions: 17 Slow queries: 0 Opens: 17 Flush tables: 1 Open tables: 1 Queries per second avg: 0.6