微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

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

如何解决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 举报,一经查实,本站将立刻删除。