title: MySQL error: SQLSTATE[HY000] [1045] Access denied for user 'test'@'localhost' (using password: YES)
body: <p>I'm actually making a form in PHP with MVC2. In my model, I need to connect to a local MySQL database. I do this with PDO. Here is my dsn :</p>
  
  <pre><code>mysql:host=localhost;dbname=test-heia;charset=utf8mb4', "test", "test"
  </code></pre>
  
  <p>But when I try to access my model through Chrome, I got this error (with PDOException) :</p>
  
  <blockquote>
    <p><strong>SQLSTATE[HY000] [1045] Access denied for user 'test'@'localhost' (using password: YES)</strong></p>
  </blockquote>
  
  <p>I'm sure of the user/password. I also tried with root user, but it doesn't seems to work.</p>
  
  <p>It's not like the proposed answer, because it's on a web page :)</p>
  
  <p>Could you please help me ? Thank you in advance :)</p>