whenever i open phpmyadmin it showing that access denied and

1045 - Access denied for user 'root'@'localhost' (using password: YES)

phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. You should check the host, username and password in your configuration and make sure that they correspond to the information given by the administrator of the MySQL server.
i dont know how to rectify it.and even i has googled i didnt got answer for this.some of the solutions have tried but it didnt rectified.please help me.

Did you change the default user (root) or the password when installing MySQL?

no .this happening after installing joomla into my wamp server.
even now i have deleted joomla from my wampserver due to mysql error.i have tried uninstalled my wampserver also.but it showing same thing only. what can i do.?

Can you access MySQL by using the command line tool?

Has the service stopped running?

On Windows:
Start Menu > Run > Type: 'services.msc' > Hit enter > Find 'mysql' > Right Click > Click 'Start' if not already running.