{"action":"closed","issue":{"url":"https://api.github.com/repos/matomo-org/matomo/issues/13771","repository_url":"https://api.github.com/repos/matomo-org/matomo","labels_url":"https://api.github.com/repos/matomo-org/matomo/issues/13771/labels{/name}","comments_url":"https://api.github.com/repos/matomo-org/matomo/issues/13771/comments","events_url":"https://api.github.com/repos/matomo-org/matomo/issues/13771/events","html_url":"https://github.com/matomo-org/matomo/issues/13771","id":384806237,"node_id":"MDU6SXNzdWUzODQ4MDYyMzc=","number":13771,"title":"matomo fails to connect to mysql when both in docker container in MAC, mySQL is accessible otherwise","user":{"login":"kkostenko","id":25335032,"node_id":"MDQ6VXNlcjI1MzM1MDMy","avatar_url":"https://avatars1.githubusercontent.com/u/25335032?v=4","gravatar_id":"","url":"https://api.github.com/users/kkostenko","html_url":"https://github.com/kkostenko","followers_url":"https://api.github.com/users/kkostenko/followers","following_url":"https://api.github.com/users/kkostenko/following{/other_user}","gists_url":"https://api.github.com/users/kkostenko/gists{/gist_id}","starred_url":"https://api.github.com/users/kkostenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kkostenko/subscriptions","organizations_url":"https://api.github.com/users/kkostenko/orgs","repos_url":"https://api.github.com/users/kkostenko/repos","events_url":"https://api.github.com/users/kkostenko/events{/privacy}","received_events_url":"https://api.github.com/users/kkostenko/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-11-27T13:56:06Z","updated_at":"2018-11-27T15:52:52Z","closed_at":"2018-11-27T15:52:52Z","author_association":"NONE","body":"Hello!\r\n\r\nI have both matomo and mysql running in docker containers on my MacBook the following way:\r\ndocker run --name mysql_matomo -p 3306:3306 -p 33060:33060  -e MYSQL_ROOT_PASSWORD=supersecretpassword -d mysql\r\ndocker run -d --link mysql_matomo --name matomo -p 80:80 -p 443:443 matomo\r\n\r\nmySQL is accessible just fine from mySQL Workbench on the same MAC.\r\nI created piwik DB on mySQL successfully.\r\n\r\nHowever, during matomo installation process if I use 127.0.0.1 address for DB server I gets the following error: \r\nError while trying to connect to the database server: SQLSTATE[HY000] [2002] Connection refused\r\nIf I use \"localhost\", I am getting another one:\r\nError while trying to connect to the database server: SQLSTATE[HY000] [2002] No such file or directory\r\n\r\nAny idea what can be wrong here?\r\n"}}
{"actor":{"display_login":"kkostenko"}}