Thursday, July 8, 2010

Re: Cake is not able to connect with database

Please try by keeping the port empty and make the database name small latter.

only change the
               'login'      => 'freeswitch',
               'password'   => 'freeswitch',
               'database'   => 'IVR',
and keep everthing as it was in default.


On Thu, Jul 8, 2010 at 8:32 PM, Nabil Alsharif <blit32@gmail.com> wrote:
Try deleting the 'port' option from your configuration.

On Thu, Jul 8, 2010 at 7:59 AM, Flavia Missi <flaviamissi@gmail.com> wrote:
> Hi!
>
> Sorry, I can't see nothing wrong with your configuration... don't know how
> to help you... I have no experience with postgres... =/
>
> []'s
>
> 2010/7/8 Gold <thangappan143@gmail.com>
>>
>> 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 <flaviami...@gmail.com> 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 <thangappan...@gmail.com>
>> >
>> >
>> >
>> > > 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 cake-php@googlegroups.com
>> > > To unsubscribe from this group, send email to
>> > >
>> > > cake-php+unsubscribe@googlegroups.com<cake-php%2Bunsubscribe@googlegroups.com>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 cake-php@googlegroups.com
>> 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?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 cake-php@googlegroups.com
> 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?hl=en
>

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 cake-php@googlegroups.com
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?hl=en



--
Thanks & regards.
------------------------------------
Yasir Arafat (Hasib)
Software Engineer
Epsilon Consulting and Development Services (ECDS)
Contact Information:
Cell : +8801816536901
Web: http://arafats.info

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 cake-php@googlegroups.com
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?hl=en

No comments: