title: xampp, php, and mysqld.sock
body: <p>I'm trying to set up a laravel app.  The app is set up, but when I try to run a migration to create a table I get the following error:</p>
  
  <pre><code>[PDOException]                                                               
  SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '  
  /var/run/mysqld/mysqld.sock' (2)
  </code></pre>
  
  <p>Now I am running xampp on ubuntu.  I'm not sure why its searching in this directory.  When I run my phpinfo, it tells me that mysqld.sock is located at: /opt/lampp/var/mysql/mysql.sock. </p>
  
  <p>I'm not sure if the php_cli module reads from a different ini file or something like that.  Has anybody had experience with this issue or have any ideas to point me in the right direction?</p>
  
  <p>Thanks! </p>