title: MYSQL error: 1045 (28000): Access denied for user 'root'@'localhost'
body: <p>When I try to connect to the sql server and enter the following in command prompt:</p>
  
  <pre><code>shell&gt; mysql --user=username--password=password db_name
  </code></pre>
  
  <p>I get error:</p>
  
  <blockquote>
    <p>ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: Y
    ES)</p>
  </blockquote>
  
  <p>What does this error mean?</p>