Wednesday, November 23, 2011

Re: new beginner needs help on cake database confiuration

Is this Cake 2.0? Do you have PDO enabled? http://book2.cakephp.org/en/installation.html?highlight=pdo

Jeremy Burns
Class Outfit

http://www.classoutfit.com

On 23 Nov 2011, at 01:09, amy wrote:

I just follow the toturial

Here is the configuration in database.php,

class DATABASE_CONFIG {

public $default = array(
'datasource' => 'Database/Mysql',
'persistent' => false,
'host' => 'localhost',
       'port' => '',
'login' => 'root',
'password' => '123456',
'database' => 'coupon',
'prefix' => '',
//'encoding' => 'utf8',
);

But still show the message: Cake is NOT able to connect to the
database

The connection is ok if I just use php mysql_connect...

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: