title: Access denied for user 'root'@'localhost' (using password: YES) after new installation on Ubuntu
body: <p>Today I did a login as root into Ubuntu 14.04.1 LTS ll</p>
  
  <p>and then <code>apt-get install mariadb-server</code> (without sudo but as root).</p>
  
  <p>With <code>mySQL -h localhost -u root --password=&lt;PW&gt;</code> I got</p>
  
  <blockquote>
    <p>Access denied for user 'root'@'localhost' (using password: YES)</p>
  </blockquote>
  
  <p>With <code>mySQL -u root -p</code> I logged into the DB and did</p>
  
  <pre><code>GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' IDENTIFIED BY '&lt;PW&gt;';
  FLUSH ALL PRIVILEGES;
  </code></pre>
  
  <p>But this did not help. Have you got any idea?
  I did not find the answer for the similar questions.</p>