(PHP 4=4.0.5,PHP 5)
MySQL _ get _ host _ info -获取MySQL主机信息
说明
mysql_get_host_info
[ resource $link_identifier
]:串
mysql_get_host_info )返回表示连接的字符串
link_identifier
要使用的连接方法。 包含服务器的主机名。 如果省略的话
link_identifier。 使用最后打开的连接。
Example #1 mysql_get_host_info (
MySQL_connect('localhost '、' mysql_user '、' mysql_password ' ) ) or
could not connect : (.MySQL _ error ) );
printf(MySQLhostinfo:%sn ),mysql_get_host_info );
?
在上面的示例中,您将获得类似于以下内容的输出:
MySQL hostinfo : localhostviaunixsocket
请参阅
[ MySQL _ get _ client _ info (] (PHP7/function.MySQL-get-client-info ),[mysql_get_proto_info
[ MySQL _ get _ server _ info () (PHP7/function.MySQL-get-server-info )。