<?php
$servername = "shuhua.dbhost";
$username = "shuhua_user";
$password = "shuhua";

// 创建连接
$conn = new mysqli($servername, $username, $password);

// 检测连接
if ($conn->connect_error) {
die("连接失败: " . $conn->connect_error);
}
echo "连接成功";
?>

相关文章:

  • 2022-12-23
  • 2022-01-07
  • 2021-06-20
  • 2022-12-23
  • 2022-12-23
  • 2021-11-20
猜你喜欢
  • 2021-09-08
  • 2022-12-23
  • 2022-12-23
  • 2021-06-22
  • 2022-03-09
  • 2021-05-18
  • 2022-12-23
相关资源
相似解决方案