title: MySQL - ERROR 1045 - Access denied
body: <p>In some way I have managed to get this error when I try to access into MySQL via the command line:</p>
  
  <pre><code>[root@localhost ~]# mysql -u root -p
  Enter password:
  ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
  </code></pre>
  
  <p>I have tried resetting the password without any luck using this HowTo.</p>
  
  <p>I have uninstalled mysql completley and reinstalled but I still get asked for a password. I have no idea why this is the case!</p>
  
  <p>Can someone please help me get a default install of MySQL.</p>
  
  <h2>Environment</h2>
  
  <p>Fedora Core 10, Full Root Access, Apache and PHP installed</p>
  
  <p>Thank you for any help!!</p>
  
  <h2>EDIT</h2>
  
  <p>To all those that would like to save themselves a few hours of "blood coughing" - when you uninstall MySQl completely delete everything that is left behind. If you don't do this, it will never be a FRESH install.</p>