title: OS X mysql cannot connect ERROR 2002 (HY000) after installing pear package. Using XAMPP
body: <p>I installed the PEAR ImageGraph module as follows:</p>
  
  <p><code>pear install Image_Graph-alpha</code></p>
  
  <p>This command came from the <a href="https://github.com/pear/Image_Graph/tree/master/docs" rel="nofollow">github</a> page</p>
  
  <p>Now when I try to connect to MySql I get the following message:</p>
  
  <pre><code>ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/Applications/XAMPP/xamppfiles/var/mysql/mysql.sock' (2)
  </code></pre>
  
  <p>I am using XAMPP and OS X Mavericks.</p>
  
  <p>Any advice? I would hate to have to reinstall everything.</p>