phpinfo查看可以解析的后缀_与TP5框架结合,报这个错误。PHP扩展已经打开,phpinfo中可查看。请问怎么解决...

PDOException: could not find driver in /www/wwwroot/henghui/thinkphp/library/think/db/Connection.php:295

Stack trace:

0 /www/wwwroot/henghui/thinkphp/library/think/db/Connection.php(295): PDO->__construct('mysql:host=120....', 'henghui', 'YjRNm7pB7ix3jPK...', Array)

1 /www/wwwroot/henghui/thinkphp/library/think/db/Connection.php(995): think\db\Connection->connect()

2 /www/wwwroot/henghui/thinkphp/library/think/db/Connection.php(348): think\db\Connection->initConnect(false)

3 /www/wwwroot/henghui/thinkphp/library/think/db/connector/Mysql.php(65): think\db\Connection->query('SHOW COLUMNS FR...', Array, false, true)

4 /www/wwwroot/henghui/thinkphp/library/think/db/Query.php(1921): think\db\connector\Mysql->getFields('fa_device')

5 /www/wwwroot/henghui/thinkphp/library/think/db/Query.php(1969): think\db\Query->getTableInfo('fa_device', 'type')

6 /www/wwwroot/henghui/thinkphp/library/think/db/Query.php(1975): think\db\Query->getFieldsType('fa_device')

7 /www/wwwroot/henghui/thinkphp/library/think/db/Builder.php(270): think\db\Query->getFieldsBind('fa_device')

8 /www/wwwroot/henghui/thinkphp/library/think/db/Builder.php(240): think\db\Builder->buildWhere(Array, Array)

9 /www/wwwroot/henghui/thinkphp/library/think/db/Builder.php(719): think\db\Builder->parseWhere(Array, Array)

10 /www/wwwroot/henghui/thinkphp/library/think/db/Query.php(2462): think\db\Builder->select(Array)

11 /www/wwwroot/henghui/thinkphp/library/think/db/Query.php(441): think\db\Query->getPdo()

12 /www/wwwroot/henghui/thinkphp/library/think/db/Query.php(576): think\db\Query->value('COUNT(*) AS tp_...', 0, true)

13 /www/wwwroot/henghui/thinkphp/library/think/db/Query.php(551): think\db\Query->aggregate('COUNT', '*', true)

14 /www/wwwroot/henghui/application/push/controller/Events.php(32): think\db\Query->count()

15 [internal function]: app\push\controller\Events::onMessage('7f00000108fe000...', '{"pak_sn":123,"...')

16 /www/wwwroot/henghui/vendor/workerman/gateway-worker/src/BusinessWorker.php(404): call_user_func('app\push\contro...', '7f00000108fe000...', '{"pak_sn":123,"...')

17 /www/wwwroot/henghui/vendor/workerman/workerman/Connection/TcpConnection.php(656): GatewayWorker\BusinessWorker->onGatewayMessage(Object(Workerman\Connection\AsyncTcpConnection), Array)

18 /www/wwwroot/henghui/vendor/workerman/workerman/Events/Select.php(292): Workerman\Connection\TcpConnection->baseRead(Resource id #155)

19 /www/wwwroot/henghui/vendor/workerman/workerman/Worker.php(2408): Workerman\Events\Select->loop()

20 /www/wwwroot/henghui/vendor/workerman/gateway-worker/src/BusinessWorker.php(197): Workerman\Worker->run()

21 /www/wwwroot/henghui/vendor/workerman/workerman/Worker.php(1541): GatewayWorker\BusinessWorker->run()

22 /www/wwwroot/henghui/vendor/workerman/workerman/Worker.php(1371): Workerman\Worker::forkOneWorkerForLinux(Object(GatewayWorker\BusinessWorker))

23 /www/wwwroot/henghui/vendor/workerman/workerman/Worker.php(1345): Workerman\Worker::forkWorkersForLinux()

24 /www/wwwroot/henghui/vendor/workerman/workerman/Worker.php(546): Workerman\Worker::forkWorkers()

25 /www/wwwroot/henghui/application/push/controller/start/normal/Linuxgate.php(68): Workerman\Worker::runAll()

26 [internal function]: app\push\controller\start\normal\Linuxgate->__construct()

27 /www/wwwroot/henghui/thinkphp/library/think/App.php(359): ReflectionClass->newInstanceArgs(Array)

28 /www/wwwroot/henghui/thinkphp/library/think/Loader.php(479): think\App::invokeClass('app\push\contro...')

29 /www/wwwroot/henghui/thinkphp/library/think/App.php(580): think\Loader::controller('start.normal.li...', 'controller', false, 'Error')

30 /www/wwwroot/henghui/thinkphp/library/think/App.php(456): think\App::module(Array, Array, true)

31 /www/wwwroot/henghui/thinkphp/library/think/App.php(139): think\App::exec(Array, Array)

32 /www/wwwroot/henghui/thinkphp/start.php(19): think\App::run()

33 /www/wwwroot/henghui/linux-port-8090.php(26): require('/www/wwwroot/he...')

34 {main}

Worker[7662] process terminated

worker[DBusinessWorker:7662] exit with status 64000

^CWorkerman[linux-port-8090.php] stopping ...

Workerman[linux-port-8090.php] has been stopped

1ed3b33f924971e33204cc00bb582028.png

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值