title: php artisan migrate error PDOException in Laravel 4
body: <p>I have a problem to execute this:</p>
  
  <pre><code>$ php artisan migrate
  </code></pre>
  
  <p>I'm getting an error</p>
  
  <pre><code>[PDOException]                             
  SQLSTATE[HY000] [2002] Connection refused 
  </code></pre>
  
  <p>I'm using MAMP and it's working ok. </p>
  
  <p>I have tried to set the localhost to 127.0.0.1 and I've added <code>'unix_socket' =&gt; '/Applications/MAMP/tmp/mysql/mysql.sock'</code> but nothing helps.</p>
  
  <p>[Edit]
  also I've added the port and I have checked the user and the password are correct and the server is running properly.. any suggestion??</p>
  
  <p>Thanks</p>