title: Laravel SQLSTATE[HY000] [1049] Unknown database + PHP artisan migrate
body: <p>I have setup Laravel before and I have never encountered a Database unknown issue. I am trying to install the default Laravel migration on a new project.</p>
  <p>I have already created the database on my server.</p>
  <p>I am using MAMP Apache port:80 MYSQL Port: 3306</p>
  <p>My env setup looks like this:</p>
  <pre><code>DB_CONNECTION=mysql
  DB_HOST=127.0.0.1
  DB_PORT=3306
  DB_DATABASE=thevinesa
  DB_USERNAME=root
  DB_PASSWORD=******
  </code></pre>
  <p>When I try to use PHP artisan migrate; I get an error of database unknown</p>
  <pre><code>SQLSTATE[HY000] [1049] Unknown database 'thevinesa' (SQL: select * from information_schema.tables where table_schema = thevinesa and table_name = migrations and table_type = 'BASE TABLE') at vendor/laravel/framework/src/Illuminate/Database/Connection.php:703
          699▕         // If an exception occurs when attempting to run a query, we'll format the error
          700▕         // message to include the bindings with SQL, which will make this exception a
          701▕         // lot more helpful to the developer instead of just the database's errors.
          702▕         catch (Exception $e) {
          703▕             throw new QueryException(
          704▕                 $query, $this-&gt;prepareBindings($bindings), $e
          705▕             );
          706▕         }
          707▕     }
      
            +33 vendor frames 
        34  artisan:37
            Illuminate\Foundation\Console\Kernel::handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
  </code></pre>
  <p>How can I solve this error</p>