MySQL database user error access denied.

I use MYSQL to connect to a database and recently, I encountered an error that has denied access to the database.
Is there anyway the problem can be solved?
I have attached a screen shot of the command prompt showing the error message. The message reads, "ERROR 1045 <28000>: Access denied for user 'root'@'localhost' <using password: YES>".
