title: Laravel failing to connect to DB after 4.2 upgrade
body: <p>I just upgraded my Laravel install from 4.1.(something) to 4.2.7 using the steps recommended here: <a href="http://laravel.com/docs/upgrade" rel="nofollow">http://laravel.com/docs/upgrade</a></p>
  
  <p>Now I'm getting this error on every page:</p>
  
  <pre><code>PDOException (2002) 
  SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '' (111)
  </code></pre>
  
  <p>MySQL is not running locally, but it's not supposed to be. I don't have any configuration for connecting to local MySQL, my development SQL server is remote. Why is it trying to connect to local?</p>
  
  <p>Is there some config change that isn't mentioned in the upgrade guide? Everything was peachy in 4.1.</p>
  
  <p>From my <code>app/config/database.php</code> file:</p>
  
  <pre><code>'default'     =&gt; 'mysql',
  ...
  'connections' =&gt; array(
      'mysql'       =&gt; array(
          'driver'        =&gt; 'mysql',
          'host'          =&gt; 'myrealdb.us-east-1.rds.amazonaws.com',
          'database'      =&gt; 'myrealdbname',
          'username'      =&gt; 'myrealuser',
          'password'      =&gt; 'myrealpass',
          'charset'       =&gt; 'utf8',
          'collation'     =&gt; 'utf8_unicode_ci',
          'prefix'        =&gt; '',
          'database_port' =&gt; '3306',
          'unix_socket'   =&gt; '',
      ),
      ...
  );
  </code></pre>
  
  <p>I tried <code>php artisan clear-compiled</code> and <code>php artisan dump-autoload</code> just in case. No effect.</p>