title: No database connection via doctrine in symfony
body: <p>I'm working on the symfony tutorial jobeet and I have problems to get a database connection to the MySQL-database via doctrine. Development enviroment: Mac OS X and XAMPP.</p>
  
  <p>The command php <code>symfony doctrine:build-schema</code> gives me the following error message:</p>
  
  <blockquote>
    <p>Warning: PDO::__construct(): [2002] No such file or directory (trying to connect via unix:///var/mysql/mysql.sock) in /Users/xx/projects/myproject/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Connection.php on line 470<br>
      PDO Connection Error: SQLSTATE[HY000] [2002] No such file or directory  </p>
  </blockquote>
  
  <p>The database settings in the database.yml:</p>
  
  <pre><code> all:
    doctrine:
      class: sfDoctrineDatabase
      param:
        dsn: 'mysql:host=localhost;dbname=my_project_db'
        username: root
        password: root
  </code></pre>
  
  <p>MySQl is running. Username and password are correct. The database 'my_project_db' exists.</p>
  
  <p>Could anybody give me a hint what's going wrong?</p>