错误:未定义的类常量“mysql\u attr\u use\u buffered\u query”

w6lpcovy  于 2021-06-20  发布在  Mysql
关注(0)|答案(1)|浏览(355)

目前我收到这种信息,我不知道如何解决它。
命令 php -m 告诉我pdo和pdoèu mysql在那里。
我在ubuntu18.04.1lts上使用drupal-8和php7.1.20
[tue sep 04 09:27:48.210064 2018][php7:注意][pid 2183][client 10.56.99.1:53758]错误:第134行的/var/www/dev/web/core/lib/drupal/core/database/driver/mysql/connection.php中未定义类常量“mysql\u attr\u use\u buffered\u query”(376):drupal\core\database\driver\mysql\connection::open(array)\n#1/var/www/dev/web/core/lib/drupal/core/database/database.php(166):drupal\core\database\database::openconnection('default','default')\n#2[内部函数]:drupal\core\database\database::getconnection('default')\n#3/var/www/dev/web/core/lib/drupal/component/dependencyinjection/phparraycontainer.php(79):调用用户函数数组('drupal\core\dat…',array)\n#4/var/www/dev/web/core/lib/drupal/component/dependencyinjection/container.php(171):drupal\component\dependencyinjection\phparraycontainer->createservice(array,'database')\n#5/var/www/dev/web/core/lib/drupal/component/dependencyinjection/phparraycontainer.php(260):drupal\component\dependencyinjection\container->get('database',1)\n#6/var/www/dev/web/core/lib/drupal/component/dependencyinjection/phparraycontainer.php(62):drupal\component\dependencyinjection\phparraycontainer->resolveservicesandparameters(array)\n#7/var/www/dev/web/core/lib/drupal/component/dependencyinjection/container.php(171):drupal\component\dependencyinjection\phparraycontainer->createservice(数组,'cache.container')\n#8/var/www/dev/web/core/lib/drupal/core/drupalkernel.php(516):drupal\component\dependencyinjection\container->get('cache.container')\n#9/var/www/dev/web/core/lib/drupal/core/drupalkernel.php(877):drupal\core\drupalkernel->getcachedcontainerdefinition()\n#10/var/www/dev/web/core/lib/drupal/core/drupalkernel.php(469):drupal\core\drupalkernel->initializecontainer()\n#11/var/www/dev/web/core/lib/drupal/core/drupalkernel.php(665):drupal\core\drupalkernel->boot()\n#12/var/www/dev/web/index.php(19):drupal\core\drupalkernel->handle(object(symfony\component\httpfoundation\request))\n#13{main}

4ktjp1zp

4ktjp1zp1#

非挥发性物质。 apt-get install php-mysql 一个简单的 service apache2 restart 至少修复了那个错误。

相关问题