title: Can't Figure out how to set up a database on Laravel
body: <p>This is becoming a really annoying problem. I am following the Quick setup directions on laravel.com. I have followed all the steps until I have to go:</p>
  
  <pre><code>php artisan migrate
  </code></pre>
  
  <p>The result is:</p>
  
  <pre><code>[PDOException]
    SQLSTATE[42000] [1049] Unknown database 'database'
  
  
  
  migrate [--bench[="..."]] [--database[="..."]] [--path[="..."]] [--package[="..."]] [--pretend] [--seed]
  </code></pre>
  
  <p>And I go back and check the database.php file and it reads:</p>
  
  <pre><code>'mysql' =&gt; array(
      'driver'    =&gt; 'mysql',
      'host'      =&gt; 'localhost',
      'database'  =&gt; 'database',
      'username'  =&gt; 'root',
      'password'  =&gt; '',
      'charset'   =&gt; 'utf8',
      'collation' =&gt; 'utf8_unicode_ci',
      'prefix'    =&gt; '',
  ),
  </code></pre>
  
  <p>Afterwards, I go to localhost:8000/users and it displays:</p>
  
  <pre><code>    PDOException
      SQLSTATE[42000] [1049] Unknown database 'database'
      open: /Users/benamorgan/Sites/run-away-world/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php
           */
  
  
      public function createConnection($dsn, array $config, array $options)
          {
              $username = array_get($config, 'username');
  
              $password = array_get($config, 'password');
  
              return new PDO($dsn, $username, $password, $options);
          }
  </code></pre>
  
  <p>I have been trying to change the database name, provide a root password, start and stop mysql, change the naming in every possible way for database, change localhost to 127.0.0.1. I don't know what to do, hence I'm stopping by here to ask where I messed up.</p>