title: exception "SQLSTATE[HY000] [1049] Base 'symfony' inconnue" while updating schema after installing FOSUserBundle
body: <p>I'm beginner. I installed FOSUserBundle on Symfony 2.6.3 fallowing instruction in book im learning (book is based on Symfony 2.0.10. I'm on 407 page, and no biger problems till now).</p>
  
  <p>Excercise i stuck is about run and test new Symfony-with-FOSUserBundle-version.</p>
  
  <p>Following errors dipslay while im running command <code>doctrine:schema:update --force</code></p>
  
  <p><code>[Doctrine\DBAL\Exception\ConnectionException] An exception occured in driver: SQLSTATE[HY000] [1049] Base 'symfony' inconnue</code></p>
  
  <p><code>[Doctrine\DBAL\Driver\PDOException]SQLSTATE[HY000] [1049] Base 'symfony' inconnue</code></p>
  
  <p><code>[PDOException]SQLSTATE[HY000] [1049] Base 'symfony' inconnue</code>    </p>
  
  <p>Here are files I changed while configured  new Symfony-with-FOSUserBundle-version
  1.</p>
  
  <pre><code> #\app\config\parameters.yml   
   parameters:
          database_driver: pdo_mysql
          database_host: localhost
          database_port: null
          database_name: symfony2sandbox
          database_user: editor
          database_password: secretPASSWORD
          mailer_transport: smtp
          mailer_host: localhost
          mailer_user: null
          mailer_password: null
          locale: en
          secret: ThisTokenIsNotSoSecretChangeIt
  </code></pre>
  
  <p>2.</p>
  
  <pre><code>#\src\My\UserBundle\Entity\User.php
  &lt;?php
  
  namespace My\UserBundle\Entity;
  
  use FOS\UserBundle\Entity\User as BaseUser;
  use Doctrine\ORM\Mapping as ORM;
  
  /**
   * @ORM\Entity
   * @ORM\Table(name="fos_user")
   */
  class User extends BaseUser {
  
      /**
       * @ORM\Id
       * @ORM\Column(type="integer")
       * @ORM\GeneratedValue(strategy="AUTO")
       */
      protected $id;
  
      public function __construct() 
      {
          parent::__construct();
      }
  
  }
  </code></pre>
  
  <p>3.</p>
  
  <pre><code>#\app\config\security.yml
  security:
      providers:
          fos_userbundle:
              id: fos_user.user_manager
  
      encoders:
          FOS\UserBundle\Model\UserInterface: sha512
  
      firewalls:
          main:
              pattern: ^/
              logout: true
              anonymous: true
              form_login:
                  provider: fos_userbundle
                  csrf_provider: form.csrf_provider
                  login_path: /login
                  use_forward: false
                  check_path: /login_check
                  post_only: true
                  always_use_default_target_path: false
                  default_target_path: /
                  target_path_parameter: _target_path
                  use_referer: false
                  failure_path: null
                  failure_forward: false
                  username_parameter: _username
                  password_parameter: _password
                  csrf_parameter: _csrf_token
                  intention: authenticate
  
      access_control:
          - { path: ^/login$, role: IS_AUTHENTICATED_ANONYMOUSLY }
          - { path: ^/register, role: IS_AUTHENTICATED_ANONYMOUSLY }
          - { path: ^/resetting, role: IS_AUTHENTICATED_ANONYMOUSLY }
          - { path: ^/admin/, role: ROLE_ADMIN }
  
      role_hierarchy:
          ROLE_ADMIN: ROLE_USER
          ROLE_SUPER_ADMIN: ROLE_ADMIN
  </code></pre>
  
  <p>4.</p>
  
  <pre><code>#\app\config\config.yml
  imports:
      - { resource: parameters.yml }
      - { resource: security.yml }
      - { resource: services.yml }
  
  framework:
      #esi:             ~
      translator:      ~
      secret:          "%secret%"
      router:
          resource: "%kernel.root_dir%/config/routing.yml"
          strict_requirements: ~
      form:            ~
      csrf_protection: ~
      validation:      { enable_annotations: true }
      templating:
          engines: ['twig']
          #assets_version: SomeVersionScheme
      default_locale:  "%locale%"
      trusted_hosts:   ~
      trusted_proxies: ~
      session:
          default_locale: pl
          # 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:   "%database_driver%"
          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%"
          auto_mapping: true
  
  # Swiftmailer Configuration
  swiftmailer:
      transport: "%mailer_transport%"
      host:      "%mailer_host%"
      username:  "%mailer_user%"
      password:  "%mailer_password%"
      spool:     { type: memory }
  
  
  stof_doctrine_extensions:
      default_locale: en_US
      orm:
          default:
              tree: false
              loggable: false
              timestampable: false
              sluggable: false
              translatable: false
  
  fos_user:
      db_driver: orm
      firewall_name: main
      user_class: My\UserBundle\Entity\User
  </code></pre>
  
  <p>5.</p>
  
  <pre><code>#\app\config\routing.yml
  fos_user_security:
      resource: "@FOSUserBundle/Resources/config/routing/security.xml"
  
  fos_user_profile:
      resource: "@FOSUserBundle/Resources/config/routing/profile.xml"
      prefix: /profile
  
  fos_user_register:
      resource: "@FOSUserBundle/Resources/config/routing/registration.xml"
      prefix: /register
  
  fos_user_resetting:
      resource: "@FOSUserBundle/Resources/config/routing/resetting.xml"
      prefix: /resetting
  
  fos_user_change_password:
      resource: "@FOSUserBundle/Resources/config/routing/change_password.xml"
      prefix: /profile
  </code></pre>
  
  <p>Important thing:
  not relevant content of <code>\config\parameters.yml</code>. These errors occurs also on parameters.yml settings from earlier version of Symfony-without-FOS, that worked fine. </p>
  
  <p>database from sql command:</p>
  
  <pre><code>drop schema if exists symfony2sandbox;
  create schema symfony2sandbox default character set utf8 collate utf8_polish_ci;
  grant all on symfony2sandbox.* to editor@localhost identified by 'secretPASSWORD';
  flush privileges;
  </code></pre>