{"action":"created","issue":{"url":"https://api.github.com/repos/bestmomo/laravel5-example/issues/41","labels_url":"https://api.github.com/repos/bestmomo/laravel5-example/issues/41/labels{/name}","comments_url":"https://api.github.com/repos/bestmomo/laravel5-example/issues/41/comments","events_url":"https://api.github.com/repos/bestmomo/laravel5-example/issues/41/events","html_url":"https://github.com/bestmomo/laravel5-example/issues/41","id":123996077,"number":41,"title":"instructions for database connection","user":{"login":"cleechtech","id":3578908,"avatar_url":"https://avatars.githubusercontent.com/u/3578908?v=3","gravatar_id":"","url":"https://api.github.com/users/cleechtech","html_url":"https://github.com/cleechtech","followers_url":"https://api.github.com/users/cleechtech/followers","following_url":"https://api.github.com/users/cleechtech/following{/other_user}","gists_url":"https://api.github.com/users/cleechtech/gists{/gist_id}","starred_url":"https://api.github.com/users/cleechtech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cleechtech/subscriptions","organizations_url":"https://api.github.com/users/cleechtech/orgs","repos_url":"https://api.github.com/users/cleechtech/repos","events_url":"https://api.github.com/users/cleechtech/events{/privacy}","received_events_url":"https://api.github.com/users/cleechtech/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-12-27T21:01:29Z","updated_at":"2016-01-01T10:15:17Z","closed_at":null,"body":"Hi there,\r\n\r\nI'm new to laravel, mostly write node.js/javascript. I have a mac, not sure how to create a database.\r\n\r\nRan\r\n\r\n```\r\n$ php artisan migrate --seed\r\n                                          \r\n  [PDOException]                                    \r\n  SQLSTATE[HY000] [2002] No such file or directory  \r\n```\r\n\r\nThen I changed the `.env` file to `DB_HOST=127.0.0.1` as mentioned in [this SO post](http://stackoverflow.com/questions/20723803/pdoexception-sqlstatehy000-2002-no-such-file-or-directory). Now I get a different error:\r\n\r\n```\r\n$ php artisan migrate --seed\r\n\r\n                                             \r\n  [PDOException]                             \r\n  SQLSTATE[HY000] [2002] Connection refused  \r\n```\r\n\r\nI have not run any mysql or postgres commands yet. What commands do I need to run in order to get rid of the Connection refused error and populate the database? \r\n                                                    "},"comment":{"url":"https://api.github.com/repos/bestmomo/laravel5-example/issues/comments/168297149","html_url":"https://github.com/bestmomo/laravel5-example/issues/41#issuecomment-168297149","issue_url":"https://api.github.com/repos/bestmomo/laravel5-example/issues/41","id":168297149,"user":{"login":"bestmomo","id":2959682,"avatar_url":"https://avatars.githubusercontent.com/u/2959682?v=3","gravatar_id":"","url":"https://api.github.com/users/bestmomo","html_url":"https://github.com/bestmomo","followers_url":"https://api.github.com/users/bestmomo/followers","following_url":"https://api.github.com/users/bestmomo/following{/other_user}","gists_url":"https://api.github.com/users/bestmomo/gists{/gist_id}","starred_url":"https://api.github.com/users/bestmomo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bestmomo/subscriptions","organizations_url":"https://api.github.com/users/bestmomo/orgs","repos_url":"https://api.github.com/users/bestmomo/repos","events_url":"https://api.github.com/users/bestmomo/events{/privacy}","received_events_url":"https://api.github.com/users/bestmomo/received_events","type":"User","site_admin":false},"created_at":"2016-01-01T10:15:17Z","updated_at":"2016-01-01T10:15:17Z","body":"I never used homestead, I am on Windows and it's really difficult to use in on this system, so I have no experience on it. You should ask your question on [Laracast forum](https://laracasts.com/discuss)."}}