MySQL 连接
时间:2021-07-01 10:21:17
帮助过:2人阅读
$dbhost = 'localhost:3306'; $dbuser = 'root'; $dbpass = '123456'; $conn = mysqli_connect($dbhost, $dbuser, $dbpass);if(! $conn ){
die('Could not connect: ' . mysqli_error());}echo '数据库连接成功!';mysqli_close($conn);?>
MySQL 连接
标签:mysql 连接