Hi,
when i do this :
D:\wamp\www_cakephp\cake\console>cake schema generate -connect default
-path d:\
wamp\www_cakephp\cake\console\config\sql\foxmask.sql

i get the error :


Welcome to CakePHP v1.2.0.5875 pre-beta Console
---------------------------------------------------------------
Cake Schema Shell
---------------------------------------------------------------
Generating Schema...
Error: Missing Database Connection. Try 'cake bake'


but my connection is well defined and works :

D:\wamp\www_cakephp\cake\console>more d:\wamp\www_cakephp\app\config
\database.php
class DATABASE_CONFIG
{
        var $default = array('driver' => 'mysql',
 
'connect' => 'mysql_connect',
                                                                'host'
=> 'localhost',
 
'login' => 'foxmask',
 
'password' => 'foxmask',
 
'database' => '',
 
'prefix' => '');

        /*var $test = array('driver' => 'mysql',
                                                        'connect' =>
'mysql_connect',
                                                        'host' =>
'localhost',
                                                        'login' =>
'user',
                                                        'password' =>
'password',
                                                        'database' =>
'project_name-test',
                                                        'prefix' =>
'');*/
}
?>


What's the matter ?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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