?php
// 假定数据库用户名:root,密码:123456,数据库:codingdict
$con=mysqli_connect("localhost","root","123456","codingdict");
if (mysqli_connect_errno($con))
{
echo "连接 MySQL 失败: " . mysqli_connect_error();
}
echo "System status: ". mysqli_stat($con);
mysqli_close($con);
?>