title: How to connect a Laravel app to MySQL using MAMP?
body: <h2>SOLVED: I followed what this website said <a href="http://forums.laravel.io/viewtopic.php?id=980" rel="noreferrer">http://forums.laravel.io/viewtopic.php?id=980</a> I just added 'unix_socket' to the mysql array and it worked!</h2>
  <p>I am following the Laravel quick start guide at <a href="http://laravel.com/docs/quick" rel="noreferrer">http://laravel.com/docs/quick</a></p>
  <p>I have everything set up and am using MAMP. When I try and view the <code>/public/users</code> page, I am hit with:</p>
  <blockquote>
  <p>PDOException</p>
  <p>SQLSTATE[28000] [1045] Access denied for user 'root'@'localhost' (using password: YES)&quot; error.</p>
  </blockquote>
  <p>My <code>database.php</code> file looks like so:</p>
  <pre class="lang-php prettyprint-override"><code>'mysql' =&gt; array(
      'driver'    =&gt; 'mysql',
      'host'      =&gt; 'localhost',
      'database'  =&gt; 'todolist',
      'username'  =&gt; 'root',
      'password'  =&gt; 'root',
      'charset'   =&gt; 'utf8',
      'collation' =&gt; 'utf8_unicode_ci',
      'prefix'    =&gt; '',
  ),
  </code></pre>
  <p>My MAMP displays:</p>
  <pre class="lang-none prettyprint-override"><code>host        localhost
  port        8889
  user        root
  password    root
  </code></pre>
  <p>My question is, is the MySQL on MAMP's separate from the MySQL tables I have created locally? I am assuming yes because I am not able to see the tables on PHPMyAdmin. If so, is there a way to connect my Laravel app to MAMP's MySQL?</p>