title: 'localhost' is not allowed to connect to this MySQL server
body: <p>When I tried to connect to my <code>http://localhost/phpmyadmin</code> the following error appeared:</p>
  
  <pre><code>#1130 - Host 'localhost' is not allowed to connect to this MySQL server 
  </code></pre>
  
  <p>I tried to connect to MySQL from command line and the same error appeared as well.</p>
  
  <p>I used root as user, there are many suggestions that tell to do some scripts from MySQL, but I can't log in MySQL even though with root user. I have a root access but I can't log in because of that error, that error appears when I try to log in.</p>
  
  <p><img src="https://i.stack.imgur.com/SRIUm.png" alt="Screenshot of Windows terminal"></p>