title: I can't access mysql ERROR: 1045(28000)
body: <p>I had installed lamp server in my Ubuntu 12.04 box when I tried to access MySQL I got this bug 
  <code>ERROR 1045(28000)</code> I tried many solution available in the internet nothing works.
  These are all my bash scripts I had tried to access it :</p>
  
  <pre><code>root@sampath-codyowl:~# mysql -p
  Enter password: 
  ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
  root@sampath-codyowl:~# mysql -u root -p
  Enter password: 
  ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
  </code></pre>