标签:
<?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 "创建成功";
标签:
原文地址:http://www.cnblogs.com/lidepeng/p/5907619.html