mysql_get_server_info
定义和用法
该mysql_get_server_info ( )函数得到有关MySQL服务器。
这个函数返回MySQL服务器版本上的成功,或FALSE的失败。
语法
mysql_get_server_info(connection)
<p>参数说明<br />connection:</p><p>可选。指定MySQL连接。如果没有指定,最后连接开幕mysql_connect ( )或mysql_pconnect ( )的使用。</p><p> </p><p>来看看实例.</p>
<div class="aritcle_card">
<a class="aritcle_card_img" href="/ai/798">
<img src="https://img.php.cn/upload/ai_manual/001/503/042/68b6d8dce6275464.png" alt="微信 WeLM">
</a>
<div class="aritcle_card_info">
<a href="/ai/798">微信 WeLM</a>
<p>WeLM不是一个直接的对话机器人,而是一个补全用户输入信息的生成模型。</p>
<div class="">
<img src="/static/images/card_xiazai.png" alt="微信 WeLM">
<span>33</span>
</div>
</div>
<a href="/ai/798" class="aritcle_card_btn">
<span>查看详情</span>
<img src="/static/images/cardxiayige-3.png" alt="微信 WeLM">
</a>
</div>
<p><span>立即学习</span>“<a href="https://pan.quark.cn/s/7fc7563c4182" style="text-decoration: underline !important; color: blue; font-weight: bolder;" rel="nofollow" target="_blank">PHP免费学习笔记(深入)</a>”;</p><p> </p><pre class="brush:php;toolbar:false;"><?php
$con = mysql_connect("localhost", "peter", "abc123");
echo "MySQL server info: " . mysql_get_server_info($con);
?>
输出信息为mysql信息哦.
PHP怎么学习?PHP怎么入门?PHP在哪学?PHP怎么学才快?不用担心,这里为大家提供了PHP速学教程(入门到精通),有需要的小伙伴保存下载就能学习啦!
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号