Drupal 8 站点未显示客户端使用 lando + docker 或 MAMP

问题描述

网站遇到意外错误。请稍后再试。

PDOException: sqlSTATE[HY000] [2002] PHP_network_getaddresses: getaddrinfo Failed: nodename nor servname provided,or not kNown in Drupal\Component\DependencyInjection\PHPArrayContainer->createService() (line 79 of /Applications/MAMP/htdocs/innovationhub/docroot/core/lib/Drupal/Component/DependencyInjection/PHPArrayContainer.PHP).
Drupal\Component\DependencyInjection\PHPArrayContainer->createService(Array,'database') (Line: 173)
Drupal\Component\DependencyInjection\Container->get('database',1) (Line: 212)
Drupal\Component\DependencyInjection\PHPArrayContainer->resolveServicesAndParameters(Array) (Line: 62)
Drupal\Component\DependencyInjection\PHPArrayContainer->createService(Array,'cache.container') (Line: 173)
Drupal\Component\DependencyInjection\Container->get('cache.container') (Line: 544)
Drupal\Core\DrupalKernel->getCachedContainerDeFinition() (Line: 910)
Drupal\Core\DrupalKernel->initializeContainer() (Line: 477)
Drupal\Core\DrupalKernel->boot() (Line: 707)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19) 

            

对不起,如果这是一个明显的问题,自从我使用 Drupal 以来已经有几年和版本了。这是一个传统的 Aquia 托管站点。似乎只需要在 default.PHP 文档中进行一些配置更改。我尝试强加数据库以及将 default.PHP 中的配置更改为我在 PHPmyadmin 中创建的新数据库。不管我改变了什么,仍然没有运气。感谢您提供任何帮助,我很乐意分享任何有助于诊断的代码片段。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)