title: Access denied for user 'username'@'localhost' even if I change user setting
body: <pre><code>&lt;?php
  
   $db = mysqli_connect('localhost','root','','firstdb')
   or die('Error connecting to MySQL server.');
  
  ?&gt;
  
  &lt;html&gt;
   &lt;head&gt;
   &lt;/head&gt;
   &lt;body&gt;
   &lt;h1&gt;PHP connect to MySQL&lt;/h1&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Although error says "Access denied for user 'username'@'localhost'", I can't seem to have access to my file because I get access denied for root user that doesn't have a password. </p>
  
  <p>I also tried to make a user with username "username" but it doesn't work at all.</p>