title: Access denied for root user in MySQL command-line
body: <p>I've just installed xampp, and am using command line to write mySQL.
  I am using 'root' with no password and can connect to mysql but cannot <code>CREATE DATABASE</code> as I get the error <code>1044 access denied for user '' @ 'localhost'</code>. I am logged in as <code>-uroot</code>.</p>
  
  <p>I have privileges in phpMyadmin to do what I want, but, in command line I seem to have no write privileges.  I've looked at all the other related posts on this topic but to no avail.  I cannot GRANT privileges as I have none anyway.</p>