<?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-10-06 05:41:37