title: Cake php Datasource class MySQL could not be found
body: <p>I have ubuntu 10.04 on server.
  I am trying to set up the cake php project but it gives me following error</p>
  
  <pre><code>   Cake is NOT able to connect to the database.
  
     Datasource class MySQL could not be found.
  </code></pre>
  
  <p>I have searched lot on the web regarding it.
  my config file looks like this</p>
  
  <pre><code>  class DATABASE_CONFIG {
  
  public $default = array(
      'datasource' =&gt; 'Database/MySQL',
      'persistent' =&gt; false,
      'host' =&gt; 'localhost',
      'login' =&gt; 'root',
      'password' =&gt; 'mypassword',
      'database' =&gt; 'dbname',
      'prefix' =&gt; '',
      //'encoding' =&gt; 'utf8',
  );
   }
  </code></pre>
  
  <p>I checked that server has all the things set up to connect as PDO I have run following script and it works fine.</p>
  
  <pre><code>    $conn = new PDO('mysql:host=localhost;dbname=dbname', $username, $password);
  </code></pre>
  
  <p>Then further I have changed in Mysql.php file of cake php which is in the "lib\Cake\Model\Datasource\Database"</p>
  
  <p>I tried to give static connection in Mysql.php but this also doesn't work. I did exit in the Mysql.php and seems like control of page is not getting here.</p>
  
  <pre><code>    $this-&gt;_connection = new PDO('mysql:host=localhost;dbname=dbname', $username, $password);
  $this-&gt;connected = true;
  </code></pre>
  
  <p>Please do let me know if I am missing anything.</p>
  
  <p>Thanks in Advance.</p>