title: An exception occurred in driver: SQLSTATE[HY000] [1045] Access denied for user 'db_user'@'localhost' (using password: YES)
body: <p>I followed this <a href="https://symfony.com/doc/current/doctrine.html" rel="noreferrer">documentation</a>
  to add doctrine to my symfony project(v4.2). But when doctrine is installed it deosn't add this line to my project ( in my .env file like mentioned in the doc ):</p>
  
  <blockquote>
    <p>DATABASE_URL="mysql://db_user:db_password@127.0.0.1:3306/db_name"</p>
  </blockquote>
  
  <p>So I added it manually like this :</p>
  
  <blockquote>
    <p>DATABASE_URL="mysql://root@127.0.0.1:3306/db_school"</p>
  </blockquote>
  
  <p>and used this commande to create the database :</p>
  
  <blockquote>
    <p>php bin/console doctrine:database:create</p>
  </blockquote>
  
  <p>and it gives me this error :</p>
  
  <blockquote>
    <p>In AbstractMySQLDriver.php line 93:
                                                                                                                                  An exception occurred in driver: SQLSTATE[HY000] [1045] Access denied for user 'db_user'@'localhost' (using password: YES)  </p>
    
    <p>In PDOConnection.php line 31:
    SQLSTATE[HY000] [1045] Access denied for user 'db_user'@'localhost' (using password: YES)<br>
    In PDOConnection.php line 27:
    SQLSTATE[HY000] [1045] Access denied for user 'db_user'@'localhost' (using password: YES)</p>
  </blockquote>
  
  <p>Even I changed the user and password it still dosn't recognize it . Any idea why it dosn't work ? I will appreciate it .</p>