title: Can't connect to local MySQL server through socket
body: <p>I am getting the following error </p>
  
  <blockquote>
    <p>error: 'Can't connect to local MySQL
    server through socket
    '/var/lib/mysql/mysql.sock' (2)'</p>
  </blockquote>
  
  <p>How can i restore the mysql.sock file?</p>
  
  <p>[Edit]</p>
  
  <p>I am trying to connect to mysql database from my ROR application. It was working fine till yesterday. But today I found out the mysql.sock file was missing. I don't know the reason of what led to deletion of mysql.sock file from location /var/lib/mysql/. How can i restore the mysql.file?   </p>
  
  <p>Thanks.....</p>