title: Laravel: SQLSTATE[HY000] [2002] Connection refused
body: <p>I am using Vagrant with fresh laravel 5.4 installed. After I run auth I have ran the migrate to migrate the MySQL tables. All of these process successful but when I try to login or register to test the system I am getting error:</p>
  
  <blockquote>
    <p>SQLSTATE[HY000] [2002] Connection refused.</p>
  </blockquote>
  
  <p>But my database working perfect since I already able to migrate the tables. Whats possible solution could be? check attached image (I'm using Ubuntu 16.04)</p>
  
  <p><img src="https://i.stack.imgur.com/YO0MR.png" alt="Connection refused."></p>