title: How to set username and password for phpMyAdmin?
body: <p>When I go to <code>localhost/phpmyadmin</code>, it shows like this:</p>
  
  <p><a href="https://i.stack.imgur.com/bfgPh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bfgPh.png" alt="enter image description here"></a></p>
  
  <p>But how to set the username and password.</p>
  
  <p>I have tried in the terminal:</p>
  
  <pre><code>mysql -u root -p
  </code></pre>
  
  <p>but it says:</p>
  
  <blockquote>
    <p>ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using
    password: YES)</p>
  </blockquote>
  
  <p>If I type username: root and password: [blank]</p>
  
  <p>It shows me:</p>
  
  <p><a href="https://i.stack.imgur.com/5sGFy.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5sGFy.png" alt="enter image description here"></a></p>