I was getting a similar error while running a PHP program in WampServer . I then set up a root password after which I was not able to access my PhpMyAdmin instead I am getting this error.
#1045 - Access denied for user 'root' @ 'localhost' (using password: NO)
phpMyAdmin tried to connect to the MySQl server, and the server rejected the connection. You should check the host, username and pas
Forum:
WampServer English