phpMyAdmin: Cannot log into the MySQL server no error code
<p>I recently copied my mysql db into a new data directory and changed a few settings.</p>

<p>I also accidentally deleted my user directory /home/<em>user</em> and had all the fun of the fair recreating that.</p>

<p>I can now connect to mysql on the command line but cannot connect via phpMyAdmin.
I get the message:</p>

<pre><code>Cannot log in to the MySQL server
</code></pre>

<p>I have seen this before, but not without the error code #1045 or #2002 prepended. </p>

<p>Would there be any logs or documentation anywhere about this message without an error code?</p>

<p><strong>UPDATE</strong></p>

<p>phpMyAdmin is installed on the same server and prompts the web user for a username/password in the browser login page, on submit with the correct details it returns to this login page with the error message displayed.</p>

<p>I have tried changing the <code>/etc/phpMyAdmin/config.inc.php</code> line to:</p>

<pre><code>$cfg['Servers'][$i]['host'] = '127.0.0.1'; // previously 'localhost'
</code></pre>

<p>I have also tried <code>FLUSH PRIVILEGE</code> to no avail.</p>