We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In AbstractMySQLDriver.php line 113:
An exception occurred in driver: SQLSTATE[HY000] [2002] Connection refused
In PDOConnection.php line 50:
SQLSTATE[HY000] [2002] Connection refused
In PDOConnection.php line 46:
The text was updated successfully, but these errors were encountered:
Hi, check if database service is up or user and password of your database service are corrects.
Sorry, something went wrong.
Also validate that you are using db as the database host (and not 127.0.0.1 or localhost) Like so: mysql://symfony:symfony@db:3306/symfony
db
127.0.0.1
localhost
mysql://symfony:symfony@db:3306/symfony
Thank you for your answers on this issue guys.
Indeed, you should use db (the docker-compose service name) as the hostname in your Symfony application configuration.
Closing this issue as I think it's not a real issue.
No branches or pull requests
In AbstractMySQLDriver.php line 113:
An exception occurred in driver: SQLSTATE[HY000] [2002] Connection refused
In PDOConnection.php line 50:
SQLSTATE[HY000] [2002] Connection refused
In PDOConnection.php line 46:
SQLSTATE[HY000] [2002] Connection refused
The text was updated successfully, but these errors were encountered: