时间:2021-07-01 10:21:17 帮助过:2人阅读
<?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 "创建成功";
pdo 抽象层连接数据库
标签: