title: [PDOException]: SQLSTATE[28000] [1045] Access denied for user 'root'@'localhost' (using password: NO) Symfony2
body: <p><strong>I tried to create my DB with Symfony2. I used the command:</strong></p>
  
  <pre><code>php app/console doctrine:create:database
  </code></pre>
  
  <p>The result is:</p>
  
  <p>[PDOException] :
  SQLSTATE[28000] [1045] Access denied for user 'root'@'localhost' (using password: NO)</p>
  
  <p>This is my parameters.yml</p>
  
  <pre><code>parameters:
  database_driver: pdo_mysql
  database_host: 127.0.0.1
  database_port: null
  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: ThisTokenIsNotSoSecretChangeIt
  debug_toolbar: true
  debug_redirects: false
  use_assetic_controller: true
  </code></pre>
  
  <p>and this is my config.yml :</p>
  
  <pre><code>doctrine:
  dbal:
      default_connection:   default
      connections:
          default:
              driver:   %database_driver%
              host:     %database_host%
              port:     %database_port%
              dbname:   %database_name%
              user:     %database_user%
              password: %database_password%
              charset:  UTF8
      types:
          json: Sonata\Doctrine\Types\JsonType
  </code></pre>
  
  <p>Any help?</p>