I've done the configuration right.
Let me validate by giving an example....

>From the command line using psql command able to connect with my
database
# psql -h localhost -d IVR -U freeswitch
Welcome to psql 7.4.16, the PostgreSQL interactive terminal.

Type:  \copyright for distribution terms
       \h for help with SQL commands
       \? for help on internal slash commands
       \g or terminate with semicolon to execute query
       \q to quit

#=>


The database configurations  in the config/database.php
class DATABASE_CONFIG {

        var $default = array(
                'driver'     => 'postgres',
                'persistent' => 'false',
                'host'       => 'localhost',
                'port'       =>  5432,
                'login'      => 'freeswitch',
                'password'   => 'freeswitch',
                'database'   => 'IVR',
        );
}

Did I do any mistake?



On Jul 5, 9:10 pm, Flavia Missi <[email protected]> wrote:
> Hi!
>
> Did you made all the configurations in the database.php file, at the config
> directory?
>
> http://book.cakephp.org/view/1531/Cake-Database-Configuration
>
> Hope it helps!
>
> 2010/7/5 Gold <[email protected]>
>
>
>
> > Dear all,
>
> >  I've started to learn the cake PHP framework for my new web
> > development. Downloaded the source and installed it. When I was
> > configuring it said the error as "cake is not able to connect with
> > database".
>
> > Searched about this issue in the cakephp site itself. They suggested
> > the poster to test the non-cake php script to check the database
> > connection.
>
> > If I tried to connect with database from normal PHP script. Am able to
> > connect with that and get the resource for further usage but why
> > couldn't I done in the case of cake PHP framework?
>
> > Some of the informations:
>
> > Using postgres database driver
>
> > PHP version -- PHP 5.3.2-0.dotdeb.2 with Suhosin-Patch (cli) (built:
> > Apr 20 2010 2:58:57)
>
> > Postgresql version -- psql 7.4.16
>
> > Check out the new CakePHP Questions sitehttp://cakeqs.organd help others
> > with their CakePHP related questions.
>
> > You received this message because you are subscribed to the Google Groups
> > "CakePHP" group.
> > To post to this group, send email to [email protected]
> > To unsubscribe from this group, send email to
> > [email protected]<cake-php%[email protected]>For
> >  more options, visit this group at
> >http://groups.google.com/group/cake-php?hl=en
>
> --
> Flàvia Missi

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to