# Fatal error: Uncaught Zend\_Db\_Adapter

**URL:** <https://forum.shopware.com/t/fatal-error-uncaught-zend-db-adapter/48789>\
**Category:** Allgemein\
**Created:** [12. Oktober 2017 um 09:43 UTC](https://forum.shopware.com/t/fatal-error-uncaught-zend-db-adapter/48789 "2017-10-12T09:43:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![TimR](https://avatars.discourse-cdn.com/v4/letter/t/3e96dc/32.png) [@TimR](https://forum.shopware.com/u/TimR)\
**Post date:** [12. Oktober 2017 um 09:43 UTC](https://forum.shopware.com/t/fatal-error-uncaught-zend-db-adapter/48789/1 "2017-10-12T09:43:45Z")

</div>

Moin an alle,

ich habe einen neuen Server. Datenbank draufgespielt, config.php angepasst, datenbank angepasst und nun bekomme ich diesen Fehler hier.  
Kann mir bitte jemand helfen? Was habe ich noch falsch gemacht oder vergessen?

Vielen Dank

&nbsp;

> **Fatal error** : Uncaught Zend\_Db\_Adapter\_Exception: SQLSTATE[HY000] [2002] php\_network\_getaddresses: getaddrinfo failed: Name or service not known in /lantjrvf/www.xy.com/engine/Library/Enlight/Components/Db/Adapter/Pdo/Mysql.php:101 Stack trace: #0 /lantjrvf/www.xy.com/engine/Library/Zend/Db/Adapter/Abstract.php(316): Enlight\_Components\_Db\_Adapter\_Pdo\_Mysql-\>\_connect() #1 /lantjrvf/www.xy.com/engine/Library/Zend/Db/Adapter/Pdo/Abstract.php(263): Zend\_Db\_Adapter\_Abstract-\>getConnection() #2 /lantjrvf/www.xy.com/engine/Shopware/Components/DependencyInjection/Bridge/Db.php(45): Zend\_Db\_Adapter\_Pdo\_Abstract-\>exec(‚SET @@session.s…‘) #3 /lantjrvf/www.xy.com/var/cache/production\_201605230943/proxies/ShopwareProductionProjectContainer.php(376): Shopware\Components\DependencyInjection\Bridge\Db-\>factory(‚pdo\_mysql‘, Array) #4 /lantjrvf/www.xy.com/vendor/symfony/dependency-injection/Container.php(327): ShopwareProductionProjectContainer-\>getDbService() #5 /lantjrvf/www.xy.com in **/lantjrvf/www.xy.com/engine/Library/Enlight/Components/Db/Adapter/Pdo/Mysql.php** on line **101**

---

<div class="post-metadata">

**Author:** ![TimmeHosting](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/timmehosting/32/15580_2.png) [@TimmeHosting](https://forum.shopware.com/u/TimmeHosting)\
**Post date:** [13. Oktober 2017 um 08:58 UTC](https://forum.shopware.com/t/fatal-error-uncaught-zend-db-adapter/48789/2 "2017-10-13T08:58:28Z")

</div>

Die Fehlermeldung besagt, daß Shopware den Hostnamen Deines Datenbankservers nicht auflösen kann. Schau’ mal im DNS nach, ob der Hostname korrekt gesetzt ist, oder nutze in der config.php alternativ die IP-Adresse Deines Datenbankservers. Eine weitere Alternative wäre, daß Du den Hostnamen in der /etc/hosts Deines Servers setzt (sofern Du root-Zugriff hast), aber ein korrekt gesetzter DNS-Eintrag ist dieser Lösung auf jeden Fall vorzuziehen.

![](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/1X/385eaa628505df573ebf33722f780335f53ac1b2.png)

Timme Hosting - schnelles nginx-Hosting

[www.timmehosting.de](https://timmehosting.de/)

---

<div class="post-metadata">

**Author:** ![TimR](https://avatars.discourse-cdn.com/v4/letter/t/3e96dc/32.png) [@TimR](https://forum.shopware.com/u/TimR)\
**Post date:** [13. Oktober 2017 um 09:07 UTC](https://forum.shopware.com/t/fatal-error-uncaught-zend-db-adapter/48789/3 "2017-10-13T09:07:23Z")

</div>

Vielen Dank.

&nbsp;

Meine config.php war fehlerhaft und auch der hostname.&nbsp;

&nbsp;

&nbsp;
