Accessing Mysql database inside the container #592
Unanswered
creativehubspace
asked this question in
Q&A
Replies: 1 comment
-
I have the same problem. |
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
-
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