阅读:1294回复:1
求解决方法无法加载数据库驱动: Think\Db\Driver\Pdo 错误位置 FILE: D:\UPUPW_AP5.5\htdocs\thinkphp-inaction\ThinkPHP\Library\Think\Db.class.php LINE: 42 TRACE #0 D:\UPUPW_AP5.5\htdocs\thinkphp-inaction\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:\UPUPW_AP5.5\htdocs\thinkphp-inaction\ThinkPHP\Library\Think\Model.class.php(1443): Think\Db::getInstance('') #2 D:\UPUPW_AP5.5\htdocs\thinkphp-inaction\ThinkPHP\Library\Think\Model.class.php(97): Think\Model->db(0, '', true) #3 D:\UPUPW_AP5.5\htdocs\thinkphp-inaction\chapter-5\ApplicationHome\Controller\IndexController.class.php(8): Think\Model->__construct() #4 [internal function]: Home\Controller\IndexController->index() #5 D:\UPUPW_AP5.5\htdocs\thinkphp-inaction\ThinkPHP\Library\Think\App.class.php(173): ReflectionMethod->invoke(Object(Home\Controller\IndexController)) #6 D:\UPUPW_AP5.5\htdocs\thinkphp-inaction\ThinkPHP\Library\Think\App.class.php(110): Think\App::invokeAction(Object(Home\Controller\IndexController), 'index') #7 D:\UPUPW_AP5.5\htdocs\thinkphp-inaction\ThinkPHP\Library\Think\App.class.php(204): Think\App::exec() #8 D:\UPUPW_AP5.5\htdocs\thinkphp-inaction\ThinkPHP\Library\Think\Think.class.php(120): Think\App::run() #9 D:\UPUPW_AP5.5\htdocs\thinkphp-inaction\ThinkPHP\ThinkPHP.php(97): Think\Think::start() #10 D:\UPUPW_AP5.5\htdocs\thinkphp-inaction\chapter-5\index.php(15): require('D:\\UPUPW_AP5.5\\...') #11 {main} |
|
沙发#
发布于:2019-08-30 21:05
tp数据库配置连接方式改成mysqli
|
|