title: phpMyadmin is not working on localhost
body: <p>I need to login into phpmyadmin through browser.</p>
  
  <p>The problem I am having when I pass url <a href="http://localhost/phpmyadmin/index.php" rel="nofollow">http://localhost/phpmyadmin/index.php</a>, phpmyadmin ask for password &amp; user name then on submit page refreshes, &amp; token assigned  by phpmyadmin changes.</p>
  
  <p>Strange thing is that I can access my database through terminal</p>
  
  <pre><code>mysql -u root -p.
  </code></pre>
  
  <p>Works fine but I cannot dig logs in apache </p>
  
  <pre><code>tail -f /va/logs/apache2  
  </code></pre>
  
  <p>no errors in  logs.</p>
  
  <p>How to get logs of mysql &amp; phpmyadmin.</p>
  
  <p>I have tried deconfig phpmyadmin but problem still persists.</p>
  
  <pre><code>sudo dpkg-reconfigure phpmyadmin  
  </code></pre>
  
  <p>I also tried to change the password </p>
  
  <pre><code>UPDATE user SET Password=PASSWORD('YOURNEWPASSWORD') WHERE User='root'; FLUSH PRIVILEGES; exit;
  </code></pre>
  
  <p>I have googled and found <code>/usr/share/phpmyadmin/config.inc.php</code> on changing this file would do the trick suggestion needed what change should i make in config file.</p>
  
  <p>Any solution is most welcome.</p>