Hi guys if you are having a problem with cakephp 2.0 in regards to
cakephp not being able to establish a database connection it maybe
that you are missing the required PDO extention to access the
respective database.

On Oct 18, 9:10 am, zer0_gravity <zr...@hotmail.com> wrote:
> I got the same error when trying to configure cakephp 2.0.0  using the
> bake script.
>
> On Oct 17, 11:23 pm, Matthew Kaufman <mkfmn...@gmail.com> wrote:
>
>
>
>
>
>
>
> > Hello,
>
> > I have always been worried about releases between Cake versions; however I
> > have/had/have the feeling that Cake 2.0 Stable is finally what I have been
> > waiting for: However, it is late at night and I am slightly tired [not
> > common]; and I just wanted to post this for documentation purposes.
>
> > Am I doing something stupid or is there a bug here?
>
> > root@mkfmnweb:/var/www/cake_2_0# ./lib/Cake/Console/cake bake
>
> > Welcome to CakePHP v2.0.0 Console
> > ---------------------------------------------------------------
> > App : app
> > Path: /var/www/cake_2_0/app/
> > ---------------------------------------------------------------
> > Interactive Bake Shell
> > ---------------------------------------------------------------
> > [D]atabase Configuration
> > [M]odel
> > [V]iew
> > [C]ontroller
> > [P]roject
> > [F]ixture
> > [T]est case
> > [Q]uit
> > What would you like to Bake? (D/M/V/C/P/F/T/Q)> D
>
> > ---------------------------------------------------------------
> > Database Configuration:
> > ---------------------------------------------------------------
> > Name:
> > [default] >
> > Driver: (Mysql/Postgres/Sqlite/Sqlserver)
> > [Mysql] > Mysql
> > Persistent Connection? (y/n)
> > [n] > n
> > Database Host:
> > [localhost] >
> > Port?
> > [n] >
> > User:
> > [root] > root
> > Password:> [removed]
>
> > Database Name:
> > [cake] > cake_2_0
> > Table Prefix?
> > [n] > n
> > Table encoding?
> > [n] > n
>
> > ---------------------------------------------------------------
> > The following database configuration will be created:
> > ---------------------------------------------------------------
> > Name:         default
> > Driver:       Mysql
> > Persistent:   false
> > Host:         localhost
> > User:         root
> > Pass:         *******
> > Database:     cake_2_0
> > ---------------------------------------------------------------
> > Look okay? (y/n)
> > [y] > y
> > Do you wish to add another database configuration?
> > [n] > n
> > PHP Fatal error:  Class 'DATABASE_CONFIG' not found in
> > /var/www/cake_2_0/lib/Cake/Console/Command/Task/DbConfigTask.php on line 262
>
> > Fatal error: Class 'DATABASE_CONFIG' not found in
> > /var/www/cake_2_0/lib/Cake/Console/Command/Task/DbConfigTask.php on line 262
> > root@mkfmnweb:/var/www/cake_2_0#
>
> > Am I running the correct path to bake or is this a bug?
>
> > Thanks.
>
> > Matthew M. Kaufmanhttp://mkfmn.com/
>
> > 503-881-6906

-- 
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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to