I know this is an old thread anyway it could be related to a PHP 5.3 mysqlnd/php sockets bug present in earlier php versions related with IPv6 issues. You will likely face this issues if using php less than 5.3.5 with NT 6.0 OS (Windows Vista, 7, 2008).

You could edit phpmyadmin configuration file (config.inc.php) and replace all the instances of localhost with 127.0.0.1
Code: 
$cfg['Servers'][$i]['host'] = '127.0.0.1'
It could be also caused by Windows/MySQL misconfiguration regarding host resolution, if so, start cmd.exe as administrator and run:
Code: 
notepad %windir%\system32\drivers\etc\hosts
To edit your hosts file and add the following line if not present already
Code: 
127.0.0.1 localhost
Regards,
NewEraCracker
NewEraCracker Reviewed by NewEraCracker on . Re: #1130 - Host 'localhost' is not allowed to connect to this MySQL server Re: #1130 - Host 'localhost' is not allowed to connect to this MySQL server How can solve this :facepalm: Rating: 5