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

Comments

Projects
None yet
4 participants
@kaneabdou
Copy link

kaneabdou commented Oct 10, 2018

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

This comment has been minimized.

Copy link

victorfrl commented Nov 16, 2018

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

@wabbenhuis

This comment has been minimized.

Copy link
Contributor

wabbenhuis commented Dec 21, 2018

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

This comment has been minimized.

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 Feb 16, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.