title: Fresh MYSQL install, Access denied for user 'root'
body: <p>I had an old lamp server that I wanted to move to a new machine, so I did a mysqldump, installed Ubuntu Server 13.10 on a new machine, installed lamp during installation, then imported my old mysql databases from the old lamp server. Everything seemed to work perfect right after the mysql import, to my surprise.</p>
  
  <p>Then I tried setting up a cron job to mysqldump all databases every hour to a backup server. Just to make sure it worked, I tried manually running mysqldump on the new server just to make sure it worked (instead of waiting for the cron job to run). Anyways, the mysqldump function would not work, and for some reason now I can't access mysql at all. I tried:</p>
  
  <pre><code>mysql -u root -p
  </code></pre>
  
  <p>and get "ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)"</p>
  
  <p>Also, none of my PHP scripts can access mysql databases as well. So I am locked out.</p>
  
  <p>I don't know why running mysqldump (or crontab) would lock me out, so I'm thinking it has to do with importing all the databases from my old lamp server (which was running an older version of mysql).</p>
  
  <p>I'm still a linux newbie for the most part so any help would be appreciated!</p>