{"action":"created","issue":{"url":"https://api.github.com/repos/tutumcloud/mysql/issues/20","labels_url":"https://api.github.com/repos/tutumcloud/mysql/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/tutumcloud/mysql/issues/20/comments","events_url":"https://api.github.com/repos/tutumcloud/mysql/issues/20/events","html_url":"https://github.com/tutumcloud/mysql/issues/20","id":40215307,"number":20,"title":"Unable to connect to MySQL","user":{"login":"ianks","id":3303032,"avatar_url":"https://avatars.githubusercontent.com/u/3303032?v=3","gravatar_id":"","url":"https://api.github.com/users/ianks","html_url":"https://github.com/ianks","followers_url":"https://api.github.com/users/ianks/followers","following_url":"https://api.github.com/users/ianks/following{/other_user}","gists_url":"https://api.github.com/users/ianks/gists{/gist_id}","starred_url":"https://api.github.com/users/ianks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ianks/subscriptions","organizations_url":"https://api.github.com/users/ianks/orgs","repos_url":"https://api.github.com/users/ianks/repos","events_url":"https://api.github.com/users/ianks/events{/privacy}","received_events_url":"https://api.github.com/users/ianks/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"tifayuki","id":5781551,"avatar_url":"https://avatars.githubusercontent.com/u/5781551?v=3","gravatar_id":"","url":"https://api.github.com/users/tifayuki","html_url":"https://github.com/tifayuki","followers_url":"https://api.github.com/users/tifayuki/followers","following_url":"https://api.github.com/users/tifayuki/following{/other_user}","gists_url":"https://api.github.com/users/tifayuki/gists{/gist_id}","starred_url":"https://api.github.com/users/tifayuki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tifayuki/subscriptions","organizations_url":"https://api.github.com/users/tifayuki/orgs","repos_url":"https://api.github.com/users/tifayuki/repos","events_url":"https://api.github.com/users/tifayuki/events{/privacy}","received_events_url":"https://api.github.com/users/tifayuki/received_events","type":"User","site_admin":false},"milestone":null,"comments":10,"created_at":"2014-08-14T01:19:20Z","updated_at":"2015-09-17T05:52:28Z","closed_at":null,"body":"I keep getting stuck at ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)\r\n\r\nI am running the create_db.sh script in the container. Nothing seems to work. Is there documentation on this functionality? If not, I will gladly contribute if I can resolve this."},"comment":{"url":"https://api.github.com/repos/tutumcloud/mysql/issues/comments/140976274","html_url":"https://github.com/tutumcloud/mysql/issues/20#issuecomment-140976274","issue_url":"https://api.github.com/repos/tutumcloud/mysql/issues/20","id":140976274,"user":{"login":"canhtran","id":3214379,"avatar_url":"https://avatars.githubusercontent.com/u/3214379?v=3","gravatar_id":"","url":"https://api.github.com/users/canhtran","html_url":"https://github.com/canhtran","followers_url":"https://api.github.com/users/canhtran/followers","following_url":"https://api.github.com/users/canhtran/following{/other_user}","gists_url":"https://api.github.com/users/canhtran/gists{/gist_id}","starred_url":"https://api.github.com/users/canhtran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/canhtran/subscriptions","organizations_url":"https://api.github.com/users/canhtran/orgs","repos_url":"https://api.github.com/users/canhtran/repos","events_url":"https://api.github.com/users/canhtran/events{/privacy}","received_events_url":"https://api.github.com/users/canhtran/received_events","type":"User","site_admin":false},"created_at":"2015-09-17T05:52:28Z","updated_at":"2015-09-17T05:52:28Z","body":"Hi, I had a trouble with connection, could you explain for me ?\r\nI used the command \r\n```\r\ndocker run -d -p 3306:3306 -v /data/mysql:/var/lib/mysql tutum/mysql\"\r\n```\r\n to mount my data to mysql lib, then I try to connect but the error message\r\n```\r\naccess denied for user 'admin'@'localhost' (using password: YES)\r\n```\r\nI run the docker logs \r\nBut the logs seems like it doesn't run the run.sh file\r\nHere is the log message, no information about the username and password.\r\n```\r\n=> Using an existing volume of MySQL\r\n=> Starting MySQL ...\r\n=> Waiting for confirmation of MySQL service startup, trying 0/60 ...\r\n=> Waiting for confirmation of MySQL service startup, trying 1/60 ...\r\ntail -F $LOG\r\n150917  4:59:06  InnoDB: Waiting for the background threads to start\r\n150917  4:59:07 InnoDB: 5.5.44 started; log sequence number 1595675\r\n150917  4:59:07 [Note] Server hostname (bind-address): '0.0.0.0'; port: 3306\r\n150917  4:59:07 [Note]   - '0.0.0.0' resolves to '0.0.0.0';\r\n150917  4:59:07 [Note] Server socket created on IP: '0.0.0.0'.\r\n150917  4:59:07 [Warning] 'user' entry 'root@ba2615921429' ignored in --skip-name-resolve mode.\r\n150917  4:59:07 [Warning] 'proxies_priv' entry '@ root@ba2615921429' ignored in --skip-name-resolve mode.\r\n150917  4:59:07 [Note] Event Scheduler: Loaded 0 events\r\n150917  4:59:07 [Note] /usr/sbin/mysqld: ready for connections.\r\nVersion: '5.5.44-0ubuntu0.14.04.1'  socket: '/var/run/mysqld/mysqld.sock'  port: 3306  (Ubuntu)\r\n```"}}