title: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in ubuntu 14.04
body: <p>I have installed LAMP on my Ubuntu machine.</p>
  
  <p>Where Apache2 and PHP5 have been installed properly as when I run <code>apache2 -v</code> and <code>php5 -v</code> I am getting their installed versions.</p>
  
  <p>But I am not sure how do I check If <code>My-SQL</code> is properly installed or not.</p>
  
  <p>Because when I run <code>mysql -u root -p</code> command, I am getting the below error.</p>
  
  <blockquote>
    <p>ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)</p>
  </blockquote>
  
  <p>Please help!</p>