# Fehler Shopware Console - WARNING! SQLSTATE\[HY000\] \[2002\] No such file or directory

**URL:** <https://forum.shopware.com/t/fehler-shopware-console-warning-sqlstate-hy000-2002-no-such-file-or-directory/37536>\
**Category:** Administration\
**Created:** [17. Juni 2016 um 13:16 UTC](https://forum.shopware.com/t/fehler-shopware-console-warning-sqlstate-hy000-2002-no-such-file-or-directory/37536 "2016-06-17T13:16:09Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![DeTi](https://avatars.discourse-cdn.com/v4/letter/d/b487fb/32.png) [@DeTi](https://forum.shopware.com/u/DeTi)\
**Post date:** [17. Juni 2016 um 13:16 UTC](https://forum.shopware.com/t/fehler-shopware-console-warning-sqlstate-hy000-2002-no-such-file-or-directory/37536/1 "2016-06-17T13:16:09Z")

</div>

Hallo!

Wenn ich über SSH auf die Konsole gehe und im Shop-Verzeichnis versuche die Shopware Console zu starten ( php bin/console ) erhalte ich den folgenden Fehler:

**WARNING! SQLSTATE[HY000] [2002] No such file or directory in /httpdocs/shop/engine/Library/Enlight/Components/Db/Adapter/Pdo/Mysql.php**

Diesen Fehler erhalte ich bei jedem Konsolen-Kommando vorne weg.

Woran kann das liegen?

Die Genannte Datei liegt in diesem Ordner. Auch die Rechte habe ich testweise auf 777 gesetzt, was nichts gebracht hat.

&nbsp;

Viele Grüße

DeTi

---

<div class="post-metadata">

**Author:** ![Moritz\_Naczenski](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/moritz_naczenski/32/7792_2.png) [@Moritz\_Naczenski](https://forum.shopware.com/u/Moritz_Naczenski)\
**Post date:** [17. Juni 2016 um 13:20 UTC](https://forum.shopware.com/t/fehler-shopware-console-warning-sqlstate-hy000-2002-no-such-file-or-directory/37536/2 "2016-06-17T13:20:20Z")

</div>

Hallo,

versuch mal in der config.php im Host mit der IP zu arbeiten - ich glaube das sollte das Problem schon lösen.

Moritz

---

<div class="post-metadata">

**Author:** ![DeTi](https://avatars.discourse-cdn.com/v4/letter/d/b487fb/32.png) [@DeTi](https://forum.shopware.com/u/DeTi)\
**Post date:** [17. Juni 2016 um 14:12 UTC](https://forum.shopware.com/t/fehler-shopware-console-warning-sqlstate-hy000-2002-no-such-file-or-directory/37536/3 "2016-06-17T14:12:23Z")

</div>

Hallo Moritz,

danke für den Tipp!

Leider funktionieren Frontend und Backend anschließend nicht mehr.

Access denied for user ‘\*\*\*\*\*\*’@‘127.0.0.1’&nbsp;

---

<div class="post-metadata">

**Author:** ![Moritz\_Naczenski](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/moritz_naczenski/32/7792_2.png) [@Moritz\_Naczenski](https://forum.shopware.com/u/Moritz_Naczenski)\
**Post date:** [17. Juni 2016 um 14:37 UTC](https://forum.shopware.com/t/fehler-shopware-console-warning-sqlstate-hy000-2002-no-such-file-or-directory/37536/4 "2016-06-17T14:37:40Z")

</div>

Also dann hast du irgendwas falsch eingegeben.

DIe Zugangsdaten passen ja jetzt anscheinend nicht mehr.

---

<div class="post-metadata">

**Author:** ![DeTi](https://avatars.discourse-cdn.com/v4/letter/d/b487fb/32.png) [@DeTi](https://forum.shopware.com/u/DeTi)\
**Post date:** [17. Juni 2016 um 14:40 UTC](https://forum.shopware.com/t/fehler-shopware-console-warning-sqlstate-hy000-2002-no-such-file-or-directory/37536/5 "2016-06-17T14:40:35Z")

</div>

Hat sich erledigt - war eine Einstellung die nur lokale Anmeldung an der DB zulies. Jetzt geht es.

&nbsp;

Danke!

---

<div class="post-metadata">

**Author:** ![jfranke](https://avatars.discourse-cdn.com/v4/letter/j/a5b964/32.png) [@jfranke](https://forum.shopware.com/u/jfranke)\
**Post date:** [15. Juli 2020 um 06:22 UTC](https://forum.shopware.com/t/fehler-shopware-console-warning-sqlstate-hy000-2002-no-such-file-or-directory/37536/6 "2020-07-15T06:22:51Z")

</div>

Ich befinde mich momentan in derselbe Situation. Ich habe fast keine Erfahrung mit shopware, aber bei Ihren Fall, was für eine Einstellung hatten Sie bzw. wie haben Sie diese Einstellung geändert um das Problem zu losen?

Ich versuche die bin/console zu startetn aber beim Terminal wird mir genau dieser Fehler angezeigt.

&nbsp;

frankeji@xxx ~ % cd /Applications/MAMP/htdocs/test&nbsp;

frankeji@xxx test % bin/console

In AbstractMySQLDriver.php line 93:

&nbsp; An exception occurred in driver: SQLSTATE[HY000] [2002] No such file or directory&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;

In PDOConnection.php line 31:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;

&nbsp; SQLSTATE[HY000] [2002] No such file or directory &nbsp;

In PDOConnection.php line 27:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;

&nbsp; SQLSTATE[HY000] [2002] No such file or directory &nbsp;

frankeji@98it006288mbmbp test %&nbsp;

---

<div class="post-metadata">

**Author:** ![shyim](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/shyim/32/7681_2.png) [@shyim](https://forum.shopware.com/u/shyim)\
**Post date:** [15. Juli 2020 um 07:40 UTC](https://forum.shopware.com/t/fehler-shopware-console-warning-sqlstate-hy000-2002-no-such-file-or-directory/37536/7 "2020-07-15T07:40:41Z")

</div>

Du musst das PHP von MAMP verwenden.
