title: Yosemite - MAMP - Can't connect to local MySQL server through socket '/Applications/MAMP/tmp/mysql/mysql.sock' (2)
body: <p>I have problem when I try to connect to MySQL MAMP :</p>
  
  <pre><code>ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/Applications/MAMP/tmp/mysql/mysql.sock' (2)
  </code></pre>
  
  <p>I'm doing research but I have not found a solution to my problem, I try to link mysql.sock like this :</p>
  
  <pre><code>sudo ln -s /Applications/MAMP/tmp/mysql/mysql.sock /tmp/mysql.sock
  </code></pre>
  
  <p>But, the file /tmp/mysql.sock doesn't exist.</p>
  
  <p>Do you have any ideas ? The problem is blocking me for 2 days, I searched for this time but nothing good for me.</p>
  
  <p>Thanks in advance,</p>