2
回答
thinkphp 3.2.3 无法加载数据库驱动: Think\Db\Driver\
利用AWS快速构建适用于生产的无服务器应用程序,免费试用12个月>>>   

PHP里开启了PDO,数据库配置如下:

//数据库连接参数
'DB_HOST'=>'127.0.0.1',
'DB_USER'=>'root',
'DB_PWD'=>'',
'DB_NAME'=>'stbc',
'DB_PREFIX'=>'',
'DB_DEBUG'=>TRUE,

错误位置

FILE: D:\workspace_php\STBC\ThinkPHP\Library\Think\Db.class.php  LINE: 42

TRACE

#0 D:\workspace_php\STBC\ThinkPHP\Library\Think\Db.class.php(42): E('\xE6\x97\xA0\xE6\xB3\x95\xE5\x8A\xA0\xE8\xBD\xBD\xE6\x95\xB0...')
#1 D:\workspace_php\STBC\ThinkPHP\Library\Think\Model.class.php(1418): Think\Db::getInstance('')
#2 D:\workspace_php\STBC\ThinkPHP\Library\Think\Model.class.php(97): Think\Model->db(0, '', true)
#3 D:\workspace_php\STBC\ThinkPHP\Common\functions.php(619): Think\Model->__construct('', '', '')
#4 D:\workspace_php\STBC\Application\Home\Controller\IndexController.class.php(6): M()
#5 [internal function]: Home\Controller\IndexController->index()
#6 D:\workspace_php\STBC\ThinkPHP\Library\Think\App.class.php(164): ReflectionMethod->invoke(Object(Home\Controller\IndexController))
#7 D:\workspace_php\STBC\ThinkPHP\Library\Think\App.class.php(202): Think\App::exec()
#8 D:\workspace_php\STBC\ThinkPHP\Library\Think\Think.class.php(120): Think\App::run()
#9 D:\workspace_php\STBC\ThinkPHP\ThinkPHP.php(97): Think\Think::start()
#10 D:\workspace_php\STBC\index.php(24): require('D:\\workspace_ph...')
#11 {main}

举报
smile1smile
发帖于3年前 2回/19K+阅
顶部