title: Laravel Homestead can't connect to db
body: <p>I'm having trouble connecting to the database when using Laravel Homestead. I can't really understand why it doesn't work I've tried god damn everything I guess. Now i got stuck and can't try much more and I start to interact with more people. Does stackoverflow have any good answer or advice to give me? :)</p>
  
  <p>This is my settings</p>
  
  <pre><code>'mysql' =&gt; array(
      'driver'    =&gt; 'mysql',
      'host'      =&gt; $_ENV['DB_HOST'],
      'database'  =&gt; $_ENV['DB_NAME'],
      'username'  =&gt; $_ENV['DB_USERNAME'],
      'password'  =&gt; $_ENV['DB_PASSWORD'],
      'charset'   =&gt; 'utf8',
      'collation' =&gt; 'utf8_unicode_ci',
      'prefix'    =&gt; '',
      'port'      =&gt; '33060'
  )
  </code></pre>
  
  <p>I've also tried this with the same response.</p>
  
  <pre><code>'mysql' =&gt; array(
      'driver'    =&gt; 'mysql',
      'host'      =&gt; $_ENV['DB_HOST'],
      'database'  =&gt; $_ENV['DB_NAME'],
      'username'  =&gt; $_ENV['DB_USERNAME'],
      'password'  =&gt; $_ENV['DB_PASSWORD'],
      'charset'   =&gt; 'utf8',
      'collation' =&gt; 'utf8_unicode_ci',
      'prefix'    =&gt; '',
      'port'      =&gt; '3306'
  )
  </code></pre>
  
  <p>This is my ENV variables.</p>
  
  <pre><code>{
  host: "127.0.0.1",
  database: "homestead",
  username: "homestead",
  password: "secret"
  }
  </code></pre>
  
  <p>The return is:</p>
  
  <pre><code>PDOException
  SQLSTATE[HY000] [2003] Can't connect to MySQL server on '127.0.0.1' (111)
  </code></pre>
  
  <p>In both Migrations as the website.</p>
  
  <p>It works to connect with Sequel Pro, it looks like this in Sequel Pro.
  <img src="https://i.stack.imgur.com/uv933.png" alt="enter image description here"></p>
  
  <p><strong>EDIT:Is it possible that there's some kinda collision between my VagrantBox's IP and the MAMP one? I've stopped every MAMP thing I've running but still the same issue, just wondering if I need to stop it somewhere else?</strong></p>