{"action":"created","issue":{"url":"https://api.github.com/repos/Chapabu/codeception-module-drupal/issues/1","labels_url":"https://api.github.com/repos/Chapabu/codeception-module-drupal/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/Chapabu/codeception-module-drupal/issues/1/comments","events_url":"https://api.github.com/repos/Chapabu/codeception-module-drupal/issues/1/events","html_url":"https://github.com/Chapabu/codeception-module-drupal/issues/1","id":72216595,"number":1,"title":"SQLSTATE[HY000] [2002] Connection refused when used with Vagrant","user":{"login":"tiagoleal25","id":12188665,"avatar_url":"https://avatars.githubusercontent.com/u/12188665?v=3","gravatar_id":"","url":"https://api.github.com/users/tiagoleal25","html_url":"https://github.com/tiagoleal25","followers_url":"https://api.github.com/users/tiagoleal25/followers","following_url":"https://api.github.com/users/tiagoleal25/following{/other_user}","gists_url":"https://api.github.com/users/tiagoleal25/gists{/gist_id}","starred_url":"https://api.github.com/users/tiagoleal25/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tiagoleal25/subscriptions","organizations_url":"https://api.github.com/users/tiagoleal25/orgs","repos_url":"https://api.github.com/users/tiagoleal25/repos","events_url":"https://api.github.com/users/tiagoleal25/events{/privacy}","received_events_url":"https://api.github.com/users/tiagoleal25/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Chapabu/codeception-module-drupal/labels/need%20more%20info","name":"need more info","color":"207de5"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-04-30T16:41:11Z","updated_at":"2015-05-05T06:53:11Z","closed_at":null,"body":"Hi @Chapabu,\r\n\r\ni'm trying to use this module on codeception to test my drupal website.\r\nOn acceptance.suite.yml i can't define configure the root folder. I'm using vagrant environment on my project.  When i execute my test, i had always this message:\r\n\r\nSQLSTATE[HY000] [2002] Connection refused codeception\r\n\r\nWhat do you think where is the problem?\r\n\r\nBest regards,\r\nTiago"},"comment":{"url":"https://api.github.com/repos/Chapabu/codeception-module-drupal/issues/comments/98973013","html_url":"https://github.com/Chapabu/codeception-module-drupal/issues/1#issuecomment-98973013","issue_url":"https://api.github.com/repos/Chapabu/codeception-module-drupal/issues/1","id":98973013,"user":{"login":"Chapabu","id":1395471,"avatar_url":"https://avatars.githubusercontent.com/u/1395471?v=3","gravatar_id":"","url":"https://api.github.com/users/Chapabu","html_url":"https://github.com/Chapabu","followers_url":"https://api.github.com/users/Chapabu/followers","following_url":"https://api.github.com/users/Chapabu/following{/other_user}","gists_url":"https://api.github.com/users/Chapabu/gists{/gist_id}","starred_url":"https://api.github.com/users/Chapabu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Chapabu/subscriptions","organizations_url":"https://api.github.com/users/Chapabu/orgs","repos_url":"https://api.github.com/users/Chapabu/repos","events_url":"https://api.github.com/users/Chapabu/events{/privacy}","received_events_url":"https://api.github.com/users/Chapabu/received_events","type":"User","site_admin":false},"created_at":"2015-05-05T06:53:11Z","updated_at":"2015-05-05T06:53:11Z","body":"No problem :) \n\nI'd wager that you're running Drupal inside a Vagrant box with localhost database settings? When you run your tests, Drupal is bootstrapping with the settings in your current settings.php file. If you run your tests outside of your Vagrant box then the module will be using the currently active credentials, which may not be correct on the host machine. \n\nCan you try SSH'ing into your Vagrant box and running your tests? "}}