PHP mysql_get_server_info() 函数

定义和用法

mysql_get_server_info() 函数返回 MySQL 服务器的信息。

如果成功,则返回 MySQL 服务器的版本号,如果失败,则返回 false。

语法

mysql_get_server_info(connection)
参数 描述
connection 可选。规定 MySQL 连接。如果未规定,则使用上一个连接。

例子

<?php
$con = mysql_connect("localhost", "hello", "321");
echo "MySQL server info: " . mysql_get_server_info($con);
?>

输出:

MySQL server info: 5.0.18-nt
系统帮助 | 给我留言 | 收藏本站
Copyright © 2005-2008 www.cnn84.com All Rights Reserved Ver:2.0
CNN84网是公益性便民网站,是为了给大家的日常生活查询及提供最快捷的出行指南