title: MySQL Daemon Lock issue
body: <p>Last night, my MySQL server went down unexpectedly. On attempting to restart (with <code>service mysql restart</code> - I'm root) it merely hangs. With the <code>mysql -u root -p</code> command, 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>I then tried to start the daemon manually (<code>mysqld</code>). The prompt would hang for about 2 seconds, and then return. On closer inspection of the error logs, I got:</p>
  
  <p><code>2016-01-22T19:18:32.399584Z 0 [ERROR] Could not create unix socket lock file /var/run/mysqld/mysqld.sock.lock.</code></p>
  
  <p><code>2016-01-22T19:18:32.399622Z 0 [ERROR] Unable to setup unix socket lock file.</code></p>
  
  <p><code>2016-01-22T19:18:32.399646Z 0 [ERROR] Aborting</code></p>
  
  <p>I then tried <code>chown mysql /var/run/mysqld</code>, <code>chmod -R 775 /var/run/mysqld</code> and <code>apt-get install mysql-community-server --reinstall</code>. No luck.</p>
  
  <p>I have looked around, and couldn't find a solution. Any help here?</p>
  
  <p>Note: I am Running Debian 8 (Jessie) with MySQL community Server 5.7.10</p>