国产+高潮+在线,国产 av 仑乱内谢,www国产亚洲精品久久,51国产偷自视频区视频,成人午夜精品网站在线观看

與TP5框架結(jié)合,報(bào)這個(gè)錯(cuò)誤。PHP擴(kuò)展已經(jīng)打開,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
截圖

3364 1 0
1個(gè)回答

six

workeman是基于php-cli運(yùn)行的,看起來是php-cli沒安裝 pdo或 pdo-mysql擴(kuò)展。
截圖里只能證明php-fpm 或者 apache安裝了 pdo-mysql擴(kuò)展,不代表 php-cli安裝了 pdo-mysql擴(kuò)展。

要看php-cli是否安裝了擴(kuò)展運(yùn)行命令 php -m | grep pdo
如果沒安裝,找到php-cli所使用的 php.ini文件 命令為 php --ini,然后打開php.ini把對應(yīng)擴(kuò)展加上去。

  • 鳶北 2020-11-10

    感謝大佬指點(diǎn),我這邊是用的ubuntu 16.04 在安裝系統(tǒng)的時(shí)候,系統(tǒng)默認(rèn)安裝上了PHP7.2的版本,里邊少了幾個(gè)擴(kuò)展。而網(wǎng)站是用的寶塔面板中的php環(huán)境,之前裝的php擴(kuò)展,都放到了php7.3當(dāng)中,所以導(dǎo)致這個(gè)問題?,F(xiàn)在已經(jīng)將寶塔中的 php 命令作為全局變量,將之前的PHP7.2卸載。完美解決

年代過于久遠(yuǎn),無法發(fā)表回答
??