Skip to content
New issue

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

problem to create data base #91

Closed
kaneabdou opened this issue Oct 10, 2018 · 3 comments
Closed

problem to create data base #91

kaneabdou opened this issue Oct 10, 2018 · 3 comments

Comments

@kaneabdou
Copy link

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

@victorfrl
Copy link

Hi, check if database service is up or user and password of your database service are corrects.

@wabbenhuis
Copy link
Contributor

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

@eko
Copy link
Owner

eko commented Feb 16, 2019

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.

@eko eko closed this as completed Feb 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants