Undefined class constant 'MYSQL_ATTR_INIT_COMMAND'

浏览:15056 发布日期:2015/06/08 分类:求助交流 关键字: Undefined class constant 'MYSQL_ATTR_INIT_COMMAND'
安装官方文档就写了下面这些结果出错了

'DB_TYPE'=>'mysql',// 数据库类型
'DB_HOST'=>'localhost',// 服务器地址
'DB_NAME'=>'thinkphp',// 数据库名
'DB_USER'=>'root',// 用户名
'DB_PWD'=>'123456',// 密码
'DB_PORT'=>3306,// 端口
'DB_PREFIX'=>'think_',// 数据库表前缀
'DB_CHARSET'=>'utf8',// 数据库字符集

$Data = M('Data');
$result = $Data->find('1');
$this->assign('result',$result);
$this->display();

<html>
<head>
<title></title>
</head>
<body>
{$result.id}--{$result.data}
</body>
</html>

Undefined class constant 'MYSQL_ATTR_INIT_COMMAND'
错误位置
FILE: D:\Program Files\apache\Apache24\htdocs\message\ThinkPHP\Library\Think\Db\Driver\Mysql.class.php  LINE: 36

谁知道大概啥原因呀,后面学习都不好进行了
最佳答案
评论() 相关
后面还有条评论,点击查看>>