{"action":"created","issue":{"url":"https://api.github.com/repos/laradock/laradock/issues/1299","repository_url":"https://api.github.com/repos/laradock/laradock","labels_url":"https://api.github.com/repos/laradock/laradock/issues/1299/labels{/name}","comments_url":"https://api.github.com/repos/laradock/laradock/issues/1299/comments","events_url":"https://api.github.com/repos/laradock/laradock/issues/1299/events","html_url":"https://github.com/laradock/laradock/issues/1299","id":279731225,"number":1299,"title":"mySQL Connection refused","user":{"login":"rafa-acioly","id":11068059,"avatar_url":"https://avatars2.githubusercontent.com/u/11068059?v=4","gravatar_id":"","url":"https://api.github.com/users/rafa-acioly","html_url":"https://github.com/rafa-acioly","followers_url":"https://api.github.com/users/rafa-acioly/followers","following_url":"https://api.github.com/users/rafa-acioly/following{/other_user}","gists_url":"https://api.github.com/users/rafa-acioly/gists{/gist_id}","starred_url":"https://api.github.com/users/rafa-acioly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rafa-acioly/subscriptions","organizations_url":"https://api.github.com/users/rafa-acioly/orgs","repos_url":"https://api.github.com/users/rafa-acioly/repos","events_url":"https://api.github.com/users/rafa-acioly/events{/privacy}","received_events_url":"https://api.github.com/users/rafa-acioly/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2017-12-06T12:13:44Z","updated_at":"2018-03-02T01:42:19Z","closed_at":null,"author_association":"NONE","body":"### Info:\r\n- Docker version (`$ docker --version`): Docker version 17.09.0-ce, build afdb6d4\r\n- Laradock commit (`$ git rev-parse HEAD`): dec08ec2b14006f106c9223b22ac52f634208ecf\r\n- System info (Mac, PC, Linux): Linux \r\n- System info disto/version: ubuntu 14.04\r\n\r\n### Issue:\r\nI'm trying to connect on my local `mysql` installation and only get the error: `SQLSTATE[HY000] [2002] Connection refused`, i've already defined the configuration at my `.env` (laradock file), if i use `localhost` at my .env file (on project) i got the error : `SQLSTATE[HY000] [2002] No such file or directory `\r\n\r\n\r\n### settings on `.env` (project):\r\n\r\n```\r\nDB_CONNECTION=mysql\r\nDB_HOST=mysql\r\nDB_PORT=3306\r\nDB_DATABASE=pluggto_admin\r\nDB_USERNAME=root\r\nDB_PASSWORD=root\r\n```\r\n**error**: php_network_getaddresses: getaddrinfo failed: Name or service not known\r\n\r\n```\r\nDB_HOST=127.0.0.1\r\n```\r\n**error**: Connection refused\r\n\r\n\r\n### settings on `.env` (laradock):\r\n\r\n```\r\nMYSQL_VERSION=8.0\r\nMYSQL_DATABASE=default\r\nMYSQL_USER=default\r\nMYSQL_PASSWORD=secret\r\nMYSQL_PORT=3306\r\nMYSQL_ROOT_PASSWORD=root\r\nMYSQL_ENTRYPOINT_INITDB=./mysql/docker-entrypoint-initdb.d\r\n```\r\ni've also tried:\r\n\r\n```\r\nMYSQL_VERSION=8.0\r\nMYSQL_DATABASE=mydbname\r\nMYSQL_USER=root\r\nMYSQL_PASSWORD=\r\nMYSQL_PORT=3306\r\nMYSQL_ROOT_PASSWORD=\r\nMYSQL_ENTRYPOINT_INITDB=./mysql/docker-entrypoint-initdb.d\r\n```"},"comment":{"url":"https://api.github.com/repos/laradock/laradock/issues/comments/369792225","html_url":"https://github.com/laradock/laradock/issues/1299#issuecomment-369792225","issue_url":"https://api.github.com/repos/laradock/laradock/issues/1299","id":369792225,"user":{"login":"bestlong","id":4023909,"avatar_url":"https://avatars2.githubusercontent.com/u/4023909?v=4","gravatar_id":"","url":"https://api.github.com/users/bestlong","html_url":"https://github.com/bestlong","followers_url":"https://api.github.com/users/bestlong/followers","following_url":"https://api.github.com/users/bestlong/following{/other_user}","gists_url":"https://api.github.com/users/bestlong/gists{/gist_id}","starred_url":"https://api.github.com/users/bestlong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bestlong/subscriptions","organizations_url":"https://api.github.com/users/bestlong/orgs","repos_url":"https://api.github.com/users/bestlong/repos","events_url":"https://api.github.com/users/bestlong/events{/privacy}","received_events_url":"https://api.github.com/users/bestlong/received_events","type":"User","site_admin":false},"created_at":"2018-03-02T01:42:19Z","updated_at":"2018-03-02T01:42:19Z","author_association":"CONTRIBUTOR","body":"Hi @danaia Your VM install source is same NativeOS (ISO image or CD/USB Flash Drive)?"}}
{"actor":{"display_login":"bestlong"}}