Accessing Mysql database inside the container #592
Unanswered
creativehubspace
asked this question in
Q&A
Replies: 2 comments
-
I have the same problem. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I'm also facing the same issue with a psql database. My php container is connecting to it all fine but I am unable to connect to the db as a data source in PHPStorm or unable to connect to it from the database container. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When I try to
docker exec -it mysql-container mysql -uapp -p
, I keep gettingAccess denied for user 'app'@'localhost' (using password: YES) .
What am I missing?Running
docker compose exec php bin/console dbal:run-sql -q "SELECT 1" && echo "OK" || echo "Connection is not working"
does echo "OK", so the database connection is working as expected.Beta Was this translation helpful? Give feedback.
All reactions