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

Connecting mysql on host #71

Closed
ploef opened this issue Jan 18, 2015 · 2 comments
Closed

Connecting mysql on host #71

ploef opened this issue Jan 18, 2015 · 2 comments

Comments

@ploef
Copy link

ploef commented Jan 18, 2015

Hi,
First of all, thanks for the great work on this image! Unfortunately I'm having a problem connecting to my mysql server on the host. Using 127.0.0.1 does not work, so I think I have to use a socket connection.
The problem is I don't know how to configure this using the environment variables.
Could you point me in the right direction?

Best regards,
Peter

@sameersbn
Copy link
Owner

@ploef using 127.0.0.1 will not work, because it would address the container itself. If you are trying to connect to a mysql server that is running on the same host as the container you should rather use 172.17.42.1 or whatever the output of ifconfig docker0 is. Also make sure the mysql user is allowed remote access originating from the 172.17.%.% address space.

Use of the mysql socket is technically possible, but not yet supported by the image so it will not work at the moment.

@sameersbn
Copy link
Owner

@ploef did you get the issue resolved?

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

2 participants