title: PDO connection error when using symfony and MAMP
body: <p>Getting an PDO error when trying to do
  <code> php symfony doctrine:insert-sql</code>
  <br>
  The error I get: <br></p>
  
  <pre>
  Warning: PDO::__construct(): [2002] Connection refused (trying to connect via tcp://127.0.0.1:3306) in /Users/johannes/Programmering/PHP/htdocs/symfony/sfprojects/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Connection.php on line 470
  </pre>
  
  <p>databases.yml</p>
  
  <pre>
      all:
      doctrine:
      class: sfDoctrineDatabase
      param:
        dsn: mysql:host=127.0.0.1;dbname=jobeet;
        username: root
        password: root
  </pre>
  
  <p>Doing a <code> mysql -u root -p jobeet </code> with "root" as password gives me access, so no problem there. And yes, the mysql that I run is MAMP's.</p>
  
  <p>Thanks for any help.</p>