When you install WAMP for the first time, phpMyAdmin’s ‘root’ account does not have a password. So, when you’re trying to install WordPress it will give you an error saying it can’t make a database connection. In order to fix this (I’m in phpMyAdmin version 3.5.1), go to the “Users” section and click “Edit Privileges” next to the root user. Then scroll down and add a password.
Finally, stop WAMP services and go to C:\wamp\apps\phpmyadmin3.5.1. Edit the config.inc.php file and add a password (for me it’s on line 16):
$cfg['Servers'][$i]['user'] = 'root'; $cfg['Servers'][$i]['password'] = 'root';
Restart WAMP services and you should be ready to go!