title: Doctrine can't find the PostgreSQL PDO driver?
body: <p>I see this question is very similar but I have PDO and pdo_pgsql installed</p>
  
  <ul>
  <li><a href="https://stackoverflow.com/questions/7451945/why-doctrine-says-it-can-not-find-the-pdo-driver">Why does Doctrine say it can&#39;t find the PDO driver?</a></li>
  </ul>
  
  <p>Here is my error message:</p>
  
  <pre><code> php app/console doctrine:mapping:convert yml ./src/Vendor/Bundle/MyBundle/Resources/config/doctrine/metadata/orm --from-database --force
  
  
  
    [PDOException]         
    could not find driver  
  
  
  
  doctrine:mapping:convert [--filter="..."] [--force] [--from-database] [--extend[="..."]] [--num-spaces[="..."]] [--namespace[="..."]] [--em[="..."]] to-type dest-path 
  </code></pre>
  
  <p>Here is my config.yml settings</p>
  
  <pre><code>doctrine:
      dbal:
        connections:
          my_database:
            driver:   pdo_pgsql
            port:     5432
            dbname:   blah
            user:     foo
            password: bar
            charset:  UTF8
  </code></pre>
  
  <p>The host is configured in the prod and dev yaml files like this</p>
  
  <pre><code>doctrine:
      dbal:
        connections:
          my_database:
            host: localhost
  </code></pre>
  
  <p>running <code>php -m</code> on the command line I see that PDO, pdo_pgsql and pgsql are all installed</p>
  
  <pre><code>PDO
  pdo_pgsql
  pgsql
  </code></pre>
  
  <p>What am I missing?</p>