title: Symfony2 Could not create database could not find driver (pdo)
body: <p>Please help me I am doing Symblog tutorial that is unfortunately filled with mistakes so I need to seek your wisdom. I am in the part of the tutorial where I need to use 2 commands </p>
  
  <p>$ php app/console doctrine:database:create</p>
  
  <p>$ php app/console doctrine:schema:create</p>
  
  <p>but after I use first one I get red error in cli:</p>
  
  <pre><code>Could not create database `symblog_db` for connection named default
  could not find driver
  </code></pre>
  
  <p>I checked another topics and they say I have to ensure that my apache and cli uses the same php.ini file. I checked it - they don't, so what now? Copy php.ini from cli and overwrite apache one or other way around?</p>
  
  <p>I use XAMPP on Ubuntu</p>
  
  <p>Here is extension part of /opt/lampp/etc/php.ini</p>
  
  <pre><code>;extension=php_bz2.dll
  ;extension=php_curl.dll
  ;extension=php_dba.dll
  ;extension=php_exif.dll
  ;extension=php_fileinfo.dll
  ;extension=php_gd2.dll
  ;extension=php_gettext.dll
  ;extension=php_gmp.dll
  ;extension=php_intl.dll
  ;extension=php_imap.dll
  ;extension=php_interbase.dll
  ;extension=php_ldap.dll
  ;extension=php_mbstring.dll
  ;extension=php_ming.dll
  ;extension=php_mssql.dll
  extension=php_mysql.dll
  ;extension=php_mysqli.dll
  ;extension=php_oci8.dll      ; Use with Oracle 10gR2 Instant Client
  ;extension=php_oci8_11g.dll  ; Use with Oracle 11g Instant Client
  ;extension=php_openssl.dll
  ;extension=php_pdo_firebird.dll
  ;extension=php_pdo_mssql.dll
  ;extension=php_pdo_mysql.dll
  ;extension=php_pdo_oci.dll
  ;extension=php_pdo_odbc.dll
  extension=php_pdo_pgsql.dll
  ;extension=php_pdo_sqlite.dll
  extension=php_pgsql.dll
  ;extension=php_phar.dll
  ;extension=php_pspell.dll
  ;extension=php_shmop.dll
  ;extension=php_snmp.dll
  ;extension=php_soap.dll
  ;extension=php_sockets.dll
  ;extension=php_sqlite.dll
  ;extension=php_sqlite3.dll
  ;extension=php_sybase_ct.dll
  ;extension=php_tidy.dll
  ;extension=php_xmlrpc.dll
  ;extension=php_xsl.dll
  ;extension=php_zip.dll
  
  ;extension="zip.so"
  
  ;extension="sqlite.so"
  
  ;extension="radius.so"
  
  ;extension="pgsql.so"
  
  ; disabled in XAMPP 1.7.2 because incompatible with PHP 5.3.0
  ;extension="dbx.so"
  
  ;extension="ming.so"
  
  ;extension="ncurses.so"
  
  ;extension="dio.so"
  
  ;extension="interbase.so"
  
  ; disabled in XAMPP 1.7.2 because incompatible with PHP 5.3.0
  ;extension="eaccelerator.so"
  ;eaccelerator.shm_size="16"
  ;eaccelerator.cache_dir="/opt/lampp/temp/eaccelerator"
  ;eaccelerator.enable="1"
  ;eaccelerator.optimizer="1"
  ;eaccelerator.check_mtime="1"
  ;eaccelerator.debug="0"
  ;eaccelerator.filter=""
  ;eaccelerator.shm_max="0"
  ;eaccelerator.shm_ttl="0"
  ;eaccelerator.shm_prune_period="0"
  ;eaccelerator.shm_only="0"
  ;eaccelerator.compress="1"
  ;eaccelerator.compress_level="9"
  </code></pre>
  
  <p>/etc/php5/cli/php.ini does not appear to have any extensions.</p>
  
  <p>Here is my app/config/parameters.yml (obviously i put real password in my file)</p>
  
  <pre><code>    database_driver: pdo_mysql
      database_host: 127.0.0.1
      database_port: null
      database_name: symblog_db
      database_user: root
      database_password: null
  
      mailer_transport: "gmail"
      mailer_encryption: "ssl"
      mailer_auth_mode: "login"
      mailer_host: "smtp.gmail.com"
      mailer_user: "mactestsymblog@gmail.com"
      mailer_password: "xxxxxxxxx"
  
      secret: JaTylkoTrenuje
  </code></pre>
  
  <p>and app/config/config.yml</p>
  
  <pre><code>imports:
      - { resource: parameters.yml }
      - { resource: security.yml }
      - { resource: services.yml }
      - { resource: @BloggerBlogBundle/Resources/config/config.yml }
  
  # Put parameters here that don't need to change on each machine where the app is deployed
  # http://symfony.com/doc/current/best_practices/configuration.html#application-related-configuration
  parameters:
      locale: en
  
  framework:
      #esi:             ~
      #translator:      { fallbacks: ["%locale%"] }
      secret:          "%secret%"
      router:
          resource: "%kernel.root_dir%/config/routing.yml"
          strict_requirements: ~
      form:            ~
      csrf_protection: ~
      validation:      { enable_annotations: true }
      #serializer:      { enable_annotations: true }
      templating:
          engines: ['twig']
          #assets_version: SomeVersionScheme
      default_locale:  "%locale%"
      trusted_hosts:   ~
      trusted_proxies: ~
      session:
          # handler_id set to null will use default session handler from php.ini
          handler_id:  ~
      fragments:       ~
      http_method_override: true
  
  # Twig Configuration
  twig:
      debug:            "%kernel.debug%"
      strict_variables: "%kernel.debug%"
  
  # Assetic Configuration
  assetic:
      debug:          "%kernel.debug%"
      use_controller: false
      bundles:        [ ]
      #java: /usr/bin/java
      filters:
          cssrewrite: ~
          #closure:
          #    jar: "%kernel.root_dir%/Resources/java/compiler.jar"
          #yui_css:
          #    jar: "%kernel.root_dir%/Resources/java/yuicompressor-2.4.7.jar"
  
  # Doctrine Configuration
  doctrine:
      dbal:
          driver:   pdo_mysql
          host:     "%database_host%"
          port:     "%database_port%"
          dbname:   "%database_name%"
          user:     "%database_user%"
          password: "%database_password%" 
          charset: UTF8
  
          # if using pdo_sqlite as your database driver:
          #   1. add the path in parameters.yml
          #     e.g. database_path: "%kernel.root_dir%/data/data.db3"
          #   2. Uncomment database_path in parameters.yml.dist
          #   3. Uncomment next line:
          #     path:     "%database_path%"
  
      orm:
          auto_generate_proxy_classes: "%kernel.debug%"
          naming_strategy: doctrine.orm.naming_strategy.underscore
          auto_mapping: true
  
  # Swiftmailer Configuration
  swiftmailer:
      transport: "%mailer_transport%"
      host:      "%mailer_host%"
      username:  "%mailer_user%"
      password:  "%mailer_password%"
      spool:     { type: memory }
  </code></pre>
  
  <p>I could add phpinfo but It will exceed the question allowed length. Please help me.</p>