title: CakePHP Database connection "Mysql" is missing, or could not be created
body: <p>There have been several other posts about this, but none of the answers seemed to work for me.</p>
  
  <p>When I navigate to the CakePHP page on my local machine, there is one error:</p>
  
  <blockquote>
    <p>Cake is NOT able to connect to the database. Database connection
    "Mysql" is missing, or could not be created.</p>
  </blockquote>
  
  <p>When I run <a href="http://php.net/manual/en/pdo.connections.php" rel="noreferrer">this helpful code</a> in my home.ctp, I get the following response:</p>
  
  <blockquote>
    <p>Error!: SQLSTATE[42000] [1049] Unknown database 'test'</p>
  </blockquote>
  
  <p>However, my <code>Users/Ben/Sites/myapp/app/Config/database.php</code> looks like this (I set MAMP to look for the document root in Users/Ben/Sites):</p>
  
  <pre><code>&lt;?php
  class DATABASE_CONFIG {
  
      public $default = array(
          'datasource' =&gt; 'Database/Mysql',
          'persistent' =&gt; false,
          'host' =&gt; 'localhost',
          'login' =&gt; 'Ben',
          'password' =&gt; 'mypass',
          'database' =&gt; 'CV',
      );
  }
  </code></pre>
  
  <p>I have created a mysql user called <code>Ben</code> with password <code>mypass</code> and created a database called <code>CV</code> under that. Moreover, I can't find mention of a <code>test</code> database anywhere. Help?</p>