0 {{postValue.vote_count}}

ERROR 2002 (HY000): Can't connect to local MySQL server

I installed LAMP on Ubuntu and then set root password on phpMyAdmin. I forgot the password and now I am unable to login. When I try to change password through terminal I get this error.
How can I fix this? I am unable to open LAMP, uninstall it, or reinstall it.

{{forumCtrl.question_commentErr}}

Your Answer
{{forumCtrl.responseErr}}