辅助函数:
mysql_client_encoding()
mysql_get_server_info()
mysql_get_host_info()
mysql_get_client_info()
mysql_stat()
示例:
<?php
$link=mysql_connect("localhost","root","root") or die("couldn't connect:".mysql_error());
echo "字符集的名称: ".mysql_client_encoding()."<br>";
echo "mysql服务器信息: ".mysql_get_server_info()."<br>";
echo "mysql主机信息: ".mysql_get_host_info()."<br>";
echo "mysql客户机信息: ".mysql_get_client_info()."<br>";
echo "当前系统的状态: ".mysql_stat()."<br>";
mysql_close();
?>
结果:
字符集的名称: 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
posted on 2009-07-02 14:52
期待明天 阅读(177)
评论(0) 编辑 收藏 所属分类:
PHP