title: CakePHP is NOT able to connect to the database
body: <p>I wanna study cakePHP and everything is configured correctly, except the problem in yellow color which follows.</p>
  
  <p>'CakePHP is NOT able to connect to the database.
  Database connection "Mysql" is missing, or could not be created.'</p>
  
  <p>I looked through google and tried everything to fix this problem but none worked.
  The Extension php_pdo_mysql is set, I also could connect to my database using phpMyAdmin and I tried testing my connection using the following code which connection is ok and extension pdo_mysql is loaded.</p>
  
  <pre><code>&lt;?php 
  $link = mysql_connect('localhost','root',''); 
  if (!$link) { 
      die('Could not connect to MySQL: ' . mysql_error()); 
  } 
  echo 'Connection OK'; mysql_close($link); 
  var_dump( extension_loaded('pdo_mysql') );
  ?&gt; 
  </code></pre>
  
  <p>The database.php file under app/Config follows: (note: I tried localhost on hostname and didn't work too)</p>
  
  <pre><code>class DATABASE_CONFIG {
  
      public $default = array(
          'datasource' =&gt; 'Database/Mysql',
          'persistent' =&gt; false,
          'host' =&gt; '127.0.0.1',
          'login' =&gt; 'root',
          'password' =&gt; '',
          'database' =&gt; 'database_name',
          'prefix' =&gt; '',
          //'encoding' =&gt; 'utf8',
      );
  
      public $test = array(
          'datasource' =&gt; 'Database/Mysql',
          'persistent' =&gt; false,
          'host' =&gt; '127.0.0.1',
          'login' =&gt; 'root',
          'password' =&gt; '',
          'database' =&gt; 'test_database_name',
          'prefix' =&gt; '',
          //'encoding' =&gt; 'utf8',
      );
  }
  </code></pre>
  
  <p>The server that I'm using is wamp and it's working fine, I mean everyting is in green color on it status.</p>
  
  <p>Please, could someone help me?!</p>