# CLI Befehle funktioniere nicht - Keine Verbindung zur Datenbank

**URL:** <https://forum.shopware.com/t/cli-befehle-funktioniere-nicht-keine-verbindung-zur-datenbank/94940>\
**Category:** Administration\
**Created:** [23. Juni 2022 um 06:52 UTC](https://forum.shopware.com/t/cli-befehle-funktioniere-nicht-keine-verbindung-zur-datenbank/94940 "2022-06-23T06:52:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![MadeProel](https://avatars.discourse-cdn.com/v4/letter/m/71c47a/32.png) [@MadeProel](https://forum.shopware.com/u/MadeProel)\
**Post date:** [23. Juni 2022 um 06:52 UTC](https://forum.shopware.com/t/cli-befehle-funktioniere-nicht-keine-verbindung-zur-datenbank/94940/1 "2022-06-23T06:52:27Z")

</div>

Hallo zusammen,

ich möchte einen CLI Befehl über SSH ausführen. Leider bekomme ich immer die folgende Fehlermeldung:

```auto
WARNING! Could not connect to database. Message from SQL Server: SQLSTATE[HY000] [2002] No such file or directory in /httpdocs/metam/engine/Shopware/Components/DependencyInjection/Bridge/Db.php

In Container.php line 334:

  The "db_connection" service is synthetic, it needs to be set at boot time b
  efore it can be used.

```

In der config.php den DB-Host von localhost auf 127.0.0.1 zu ändern hat nichts gebracht. Zumal dann auch der Shop nicht mehr erreichbar ist.

Folgender Befehl wurde zum Test ausprobiert:  
php bin/console sw:plugin:list  
php5 bin/console sw:plugin:list
