title: symfony2. Cannot load pdo drivers
body: <p>When i'm try to create db with</p>
  
  <pre><code>doctrine:database:create
  </code></pre>
  
  <p>There are errors(mysql or postgresql):</p>
  
  <pre><code>Could not create database for connection named `symfony`
  could not find driver
  </code></pre>
  
  <p>my parametrs.yml:</p>
  
  <pre><code>parameters:
  database_driver: pdo_mysql
  database_host: 127.0.0.1
  database_port: 3306
  database_name: symfony
  database_user: root
  database_password: null
  mailer_transport: smtp
  mailer_host: 127.0.0.1
  mailer_user: null
  mailer_password: null
  locale: en
  secret: 1dffcb10ddfc2bbc4f211d773f2524557
  database_path: null
  </code></pre>
  
  <p>When i'm trying to map my classes to db</p>
  
  <pre><code>php app/console doctrine:generate:entities Demos/BlogBundle/Entity/Post
  php app/console doctrine:schema:update --force
  </code></pre>
  
  <p>there are error:</p>
  
  <pre><code>[PDOException]         
    could not find drive
  </code></pre>
  
  <p>lines uncomment in the file php.ini</p>
  
  <pre><code>extension=php_pdo_mysql.dll
  extension=php_pdo_pgsql.dll
  </code></pre>
  
  <p>print_r(get_loaded_extensions()) result :</p>
  
  <p>Array (... mbstring [35] => exif [36] => gd [37] => gettext [38] => mysql [39] => Phar [40] => pdo_mysql [41] => pdo_pgsql [42] => pgsql ... )</p>
  
  <p>i found <a href="http://www.php.net/manual/en/pdo.installation.php" rel="nofollow">http://www.php.net/manual/en/pdo.installation.php</a>
  user gerrywastaken wrote, that there maybe need commands:</p>
  
  <p>--with-pdo-mysql[=DIR]    PDO: MySQL support. DIR is the MySQL base directoy
                                   If mysqlnd is passed as DIR, the MySQL native
                                   native driver will be used [/usr/local]</p>
  
  <p>i can't understand where execute this commands, or configure...</p>