下面是数据库信息:
// mysql全局定义
'DB_TYPE' => 'mysql',
'DB_HOST' => 'localhost',
'DB_USER' => 'root',
'DB_PWD' => '',
'DB_NAME' => 'think',
'DB_PORT' => 3306,
'DB_PREFIX' => 'think_',
在浏览器中报错,如下:(哪位大师帮忙看看呀)
:(
无法加载数据库驱动: Think\Db\Driver\
错误位置
FILE: F:\web\project\Think\Library\Think\Db.class.php LINE: 42
TRACE
#0 F:\web\project\Think\Library\Think\Db.class.php(42): E('\xE6\x97\xA0\xE6\xB3\x95\xE5\x8A\xA0\xE8\xBD\xBD\xE6\x95\xB0...')
#1 F:\web\project\Think\Library\Think\Model.class.php(1423): Think\Db::getInstance('')
#2 F:\web\project\Think\Library\Think\Model.class.php(97): Think\Model->db(0, '', true)
#3 F:\web\project\Weibo\Home\Controller\UserController.class.php(21): Think\Model->__construct()
#4 [internal function]: Home\Controller\UserController->model()
#5 F:\web\project\Think\Library\Think\App.class.php(164): ReflectionMethod->invoke(ob
#6 F:\web\project\Think\Library\Think\App.class.php(202): Think\App::exec()
#7 F:\web\project\Think\Library\Think\Think.class.php(120): Think\App::run()
#8 F:\web\project\Think\ThinkPHP.php(97): Think\Think::start()
#9 F:\web\project\index.php(24): require('F:\\web\\project\\...')
#10 {main}
最佳答案