For this error on mysql phpmyadmin
i did this:
- edited </etc/mysql/my.conf>
- commented the line corresponding to ‘bind-address’ (that is, hash it)
- edited ‘config.inc.php’ in phpmyadmin folder
- added/edited a line $cfg['Servers'][$i]['host'] = ‘localhost’;
- restart mysql – ‘sudo /etc/init.d/mysql restart’