title: Access denied when creating database with doctrine, Symfony 4
body: <p>I created a new Symfony 4 project and want to create a new database. I'm following <a href="https://symfony.com/doc/master/doctrine.html" rel="nofollow noreferrer">this tutorial</a> but can't get it to work. When running</p>
  
  <pre><code>php bin/console doctrine:database:create
  </code></pre>
  
  <p>I always get the same error:</p>
  
  <pre><code>In AbstractMySQLDriver.php line 112:
      An exception occurred in driver: SQLSTATE[HY000] [1045] Access denied for user 'user_1'@'localhost' (using password: YES)
  
  In PDOConnection.php line 50:
      SQLSTATE[HY000] [1045] Access denied for user 'user_1'@'localhost' (using password: YES)
  
  In PDOConnection.php line 46:
      SQLSTATE[HY000] [1045] Access denied for user 'user_1'@'localhost' (using password: YES)
  </code></pre>
  
  <p>Following the tutorial, I configured database url in .env file, but it doesn't seem to change anything.</p>
  
  <pre><code>DATABASE_URL=mysql://user_1:secretPassword@127.0.0.1:3306/db_name
  </code></pre>
  
  <p>My config/packages/doctrine.yaml configuration:</p>
  
  <pre><code>parameters:
      env(DATABASE_URL): ''
  
  doctrine:
      dbal:
          # configure these for your database server
          driver: 'pdo_mysql'
          server_version: '5.7'
          charset: utf8mb4
          default_table_options:
              charset: utf8mb4
              collate: utf8mb4_unicode_ci
  
          url: '%env(resolve:DATABASE_URL)%'
      orm:
          auto_generate_proxy_classes: '%kernel.debug%'
          naming_strategy: doctrine.orm.naming_strategy.underscore
          auto_mapping: true
          mappings:
              App:
                  is_bundle: false
                  type: annotation
                  dir: '%kernel.project_dir%/src/Entity'
                  prefix: 'App\Entity'
                  alias: App
  </code></pre>
  
  <p>Tried everything and nothing seems to work. Any help would be greatly appreciated.</p>