title: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
body: <p>I installed <a href="http://en.wikipedia.org/wiki/LAMP_%28software_bundle%29">LAMP</a> on <a href="http://en.wikipedia.org/wiki/List_of_Ubuntu_releases#Ubuntu_12.04_LTS_.28Precise_Pangolin.29">Ubuntu&nbsp;12.04 LTS</a> (Precise Pangolin) and then set root password on <a href="http://en.wikipedia.org/wiki/PhpMyAdmin">phpMyAdmin</a>. I forgot the password and now I am unable to login. When I try to change password through terminal I get:</p>
  
  <blockquote>
    <p>ERROR 2002 (HY000): Can't connect to local MySQL server through socket
     '/var/run/mysqld/mysqld.sock' (2)</p>
  </blockquote>
  
  <p>How can I fix this? I am unable to open LAMP, uninstall it or reinstall it.</p>