title: mysql-server install won't create mysql.sock file | can't connect server
body: <p>I'm trying to connect to phpmyadmin in localhost and retrieve my db but I'm facing an issue that I can't fix. When I try to connect to mysql service I get this error :</p>
  
  <pre><code>ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' 
  (2 "No such file or directory")
  </code></pre>
  
  <p>I supposed my file wasn't created at the right place and I've seen many relative questions on SO (I'm aware it can be a duplicate here), but I've fount no answer yet by consulting these topics.. </p>
  
  <p>I've tried :</p>
  
  <ul>
  <li>restarting mysql service (of course) -> nothing changed</li>
  <li>purge mysql-server and reinstall it but no sock file is created when reinstalling</li>
  <li>locate my sock file with <code>sudo find / -name mysql.sock</code> output is empty</li>
  <li>locate my sock file with <code>mysqladmin | grep mysql.sock</code> but this only look for socket conf in my my.cnf file </li>
  </ul>
  
  <p>I know I can't create this file by myself as it's a pipe file with unusual format. </p>
  
  <p>Does anyone know how to proceed here ? :D </p>