# Console doesn't work after installation

**URL:** <https://forum.shopware.com/t/console-doesnt-work-after-installation/52208>\
**Category:** International (English Only)\
**Tags:** general\
**Created:** [5. April 2018 um 13:28 UTC](https://forum.shopware.com/t/console-doesnt-work-after-installation/52208 "2018-04-05T13:28:28Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ademir](https://avatars.discourse-cdn.com/v4/letter/a/49beb7/32.png) [@ademir](https://forum.shopware.com/u/ademir)\
**Post date:** [5. April 2018 um 13:28 UTC](https://forum.shopware.com/t/console-doesnt-work-after-installation/52208/1 "2018-04-05T13:28:28Z")

</div>

Hi folks!

I installed succesfully the shopware with the Mac OS installer. Latest version.

I can see my shop, frontend, backend, connect to database with phpMyAdmin, etc.

Problem is: When trying to use the console to update/create plugins I receive:

“WARNING! Could not connect to database. Message from SQL Server: SQLSTATE[HY000] [1045] Access denied for user ‘\*\*\*\*\*\*’@‘localhost’ (using password: YES) in /Users/truads/www/bitnami/apps/shopware/htdocs/engine/Shopware/Components/DependencyInjection/Bridge/Db.php”

“[Symfony\Component\DependencyInjection\Exception\RuntimeException]  
&nbsp; You have requested a synthetic service (“db\_connection”). The DIC does not know how to construct this service.”

&nbsp;

---

<div class="post-metadata">

**Author:** ![hsoebbing](https://avatars.discourse-cdn.com/v4/letter/h/898d66/32.png) [@hsoebbing](https://forum.shopware.com/u/hsoebbing)\
**Post date:** [5. April 2018 um 13:36 UTC](https://forum.shopware.com/t/console-doesnt-work-after-installation/52208/2 "2018-04-05T13:36:29Z")

</div>

"Access denied for user ‚\*\*\*\*\*\*‘@‚localhost‘ " - looks like there is a problem with your database credentials.

---

<div class="post-metadata">

**Author:** ![ademir](https://avatars.discourse-cdn.com/v4/letter/a/49beb7/32.png) [@ademir](https://forum.shopware.com/u/ademir)\
**Post date:** [5. April 2018 um 13:40 UTC](https://forum.shopware.com/t/console-doesnt-work-after-installation/52208/3 "2018-04-05T13:40:50Z")

</div>

It is really strange, the application connects to the database, also I can connect to the database.

Only when trying to use the console I got this error. My config.php file has the correct credentials.

Does the console get the credentials from somewhere else?

---

<div class="post-metadata">

**Author:** ![vanwittlaer](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/vanwittlaer/32/8499_2.png) [@vanwittlaer](https://forum.shopware.com/u/vanwittlaer)\
**Post date:** [5. April 2018 um 13:52 UTC](https://forum.shopware.com/t/console-doesnt-work-after-installation/52208/4 "2018-04-05T13:52:29Z")

</div>

We know very little about your environment … a typical problem is that console commands run in a different environment than the webserver, e.g. with regard to .ini-files or even php versions.

Good luck! (Or be more verbose about your environment and setup.)

Geert

---

<div class="post-metadata">

**Author:** ![hsoebbing](https://avatars.discourse-cdn.com/v4/letter/h/898d66/32.png) [@hsoebbing](https://forum.shopware.com/u/hsoebbing)\
**Post date:** [5. April 2018 um 14:19 UTC](https://forum.shopware.com/t/console-doesnt-work-after-installation/52208/5 "2018-04-05T14:19:50Z")

</div>

Do you connect via socket or 127.0.0.1 to your database? Maybe try using 127.0.0.1 instead of “localhost”?

---

<div class="post-metadata">

**Author:** ![ademir](https://avatars.discourse-cdn.com/v4/letter/a/49beb7/32.png) [@ademir](https://forum.shopware.com/u/ademir)\
**Post date:** [5. April 2018 um 14:23 UTC](https://forum.shopware.com/t/console-doesnt-work-after-installation/52208/6 "2018-04-05T14:23:33Z")

</div>

> [@hsoebbing schrieb:](https://forum.shopware.com/profile/25327/hsoebbing "hsoebbing")
> 
> Do you connect via socket or 127.0.0.1 to your database? Maybe try using 127.0.0.1 instead of „localhost“

Thanks! It worked.

Sorry for the beginner questions. First time trying.

---

<div class="post-metadata">

**Author:** ![severu](https://avatars.discourse-cdn.com/v4/letter/s/e480ec/32.png) [@severu](https://forum.shopware.com/u/severu)\
**Post date:** [10. März 2023 um 09:40 UTC](https://forum.shopware.com/t/console-doesnt-work-after-installation/52208/7 "2023-03-10T09:40:50Z")

</div>

Did you change this in the .env file?

Like doing DATABASE\_URL=mysql://127.0.0.1:user@pw:3306/shopware6

instead of

DATABASE\_URL=mysql://localhost:user@pw:3306/shopware6

Be cause doing this results in this Error for me:

# Could not connect to database. Message from SQL Server: An exception occurred in driver: SQLSTATE[HY000] [1045] Access denied for user ‚ **‚@‘** ‘ (using password: YES)

But Username and Password are correct.
