Skip to content
This repository has been archived by the owner on Jul 25, 2023. It is now read-only.

SQLSTATE[HY000] [1045] Access denied for user #172

Closed
leonmex opened this issue May 10, 2020 · 3 comments
Closed

SQLSTATE[HY000] [1045] Access denied for user #172

leonmex opened this issue May 10, 2020 · 3 comments

Comments

@leonmex
Copy link

leonmex commented May 10, 2020

Hello is not possible to execute setup:upgrade I get always SQLSTATE[HY000] [1045] Access denied for user the root user is % assigned. someone knows how to solve this problem.

@joesken
Copy link

joesken commented May 11, 2020

Hi - some things to try maybe to get to the bottom of the issue:

  • Can you ping the db container from FPM container?
  • Can you log on to the database from the FPM container? e.g. mysql -u usernname -p -h db and put in the password when prompted.
  • Double check the host, username and password values are correct in your env.php file?

@leonmex
Copy link
Author

leonmex commented May 11, 2020

Hello @joesken yes ping:

After install all again the setup:upgrade / access to the database works.

But varnish still not use the port 80 and I need to set manually the port for varnish in the shop.local:port for get the access. any clue about this issue.

Best.

@joesken
Copy link

joesken commented May 20, 2020

Hi,

I'm not clear what you mean by "need to set manually the port for varnish in the shop.local:port" - where are you talking about here?

Depending on what system you are using you may need to edit the docker-compose file to explicitly map the ports e.g. 80:80 (I think be default on the Mac setup this get's linked automagically).

J

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants