<?php
header("content-type:text/html; charset=utf8");
try{
$pdo=new PDO(‘mysql:host=localhost;dbname=test‘, "root", "");
}catch(PDOException $e){
echo "连接失败".$e->getMessage();
exit;
}
echo "创建成功";
时间: 2024-12-06 11:51:17