-
Notifications
You must be signed in to change notification settings - Fork 261
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
mysql remote connection issue #20
Comments
sure, I'll try and take a look at this today for you 👍 |
Thank you for helping me
…On Aug 14, 2017 3:43 AM, "Matt Rayner" ***@***.***> wrote:
sure, I'll try and take a look at this today for you 👍
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#20 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AEskLjpWatWl0TFIIFr-me8NOYQMjGq_ks5sYAiugaJpZM4O10tD>
.
|
Hello Matt,
Were you able to check what is not working well?
On Aug 14, 2017 12:12 PM, "Santiago Rivera Botero" <
santiagoriverabotero@gmail.com> wrote:
… Thank you for helping me
On Aug 14, 2017 3:43 AM, "Matt Rayner" ***@***.***> wrote:
> sure, I'll try and take a look at this today for you 👍
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <#20 (comment)>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AEskLjpWatWl0TFIIFr-me8NOYQMjGq_ks5sYAiugaJpZM4O10tD>
> .
>
|
@sachi842 @mattrayner I am having the same problem. I cannot access the mysql database from outside the container. I mapped the port 3306 to 3050. |
I'm going to have another look at this now |
I found the solution for MySQL remote access outside of the container. edit MySQL config file under etc and change the binding address to 0.0.0.0 and then restart MySQL. finally, restart the LAMP container. |
I've added this to the Dockerfiles and am testing now:
|
Fixed in #36 |
I found it still does not work. Maybe the the file name |
Try this: |
Sorry, I'm new to docker. I tried docker commit to save changes, however it doesn't work. Could you update the image? |
I'm running the latest-1804. |
Same issue |
See it #63 , a temporary solution. |
@pzhlkj6612 : |
Thanx also working for me now |
I'm adding the fix here to the Dockerfile for 1604 and 1804 - once I've got a fix I'll post it here |
This should now be fixed in the latest release Thanks for all your patience, if you can confirm and post back that would be amazing! |
Hi, it is working now |
I am trying to expose 3306 to my Docker host via: -p "3306:3306". I cannot connect to 3306 from outside the container.
Someone on the Docker Slack community helped, and it looks like MySQL is bound to 127.0.0.1:3306 inside the container, not 0.0.0.0:3306.
Can you take a look?
root@117903e45f7f:/# apt install net-tools && netstat -lnp | grep 3306
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
net-tools
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
Need to get 175 kB of archives.
After this operation, 725 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu xenial/main amd64 net-tools amd64 1.60-26ubuntu1 [175 kB]
Fetched 175 kB in 0s (202 kB/s)
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package net-tools.
(Reading database ... 17375 files and directories currently installed.)
Preparing to unpack .../net-tools_1.60-26ubuntu1_amd64.deb ...
Unpacking net-tools (1.60-26ubuntu1) ...
Setting up net-tools (1.60-26ubuntu1) ...
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN -
The text was updated successfully, but these errors were encountered: