Hello,

I am trying to do the "Simple Acl controlled Application" tutorial.
Everything works fine so far (cake bake opens the menu), but when I
choose an option or want to execute the "cake bake all" command, i get
the following error:

-----------------------------------------------------------------------------------------------------------------------------------
Error: Database connection "Mysql" is missing, or could not be
created.
#0 E:\xampp\htdocs\cake\lib\Cake\Model\ConnectionManager.php(98):
DboSource->__c
onstruct(Array)
#1 E:\xampp\htdocs\cake\lib\Cake\Console\Command\Task
\ModelTask.php(838): Connec
tionManager::getDataSource('default')
#2 E:\xampp\htdocs\cake\lib\Cake\Console\Command\Task
\ControllerTask.php(397): M
odelTask->getAllTables('default')
#3 E:\xampp\htdocs\cake\lib\Cake\Console\Command\Task
\ControllerTask.php(419): C
ontrollerTask->listAll(NULL)
#4 E:\xampp\htdocs\cake\lib\Cake\Console\Command\Task
\ViewTask.php(208): Control
lerTask->getName()
#5 E:\xampp\htdocs\cake\lib\Cake\Console\Command\Task
\ViewTask.php(90): ViewTask
->_interactive()
#6 E:\xampp\htdocs\cake\lib\Cake\Console\Shell.php(378): ViewTask-
>execute()
#7 E:\xampp\htdocs\cake\lib\Cake\Console\Shell.php(375): Shell-
>runCommand('exec
ute', Array)
#8 E:\xampp\htdocs\cake\lib\Cake\Console\ShellDispatcher.php(177):
Shell->runCom
mand('View', Array)
#9 E:\xampp\htdocs\cake\lib\Cake\Console\ShellDispatcher.php(69):
ShellDispatche
r->dispatch()
#10 E:\xampp\htdocs\cake\app\Console\cake.php(41):
ShellDispatcher::run(Array)
#11 {main}
-----------------------------------------------------------------------------------------------------------------------------------

The database exists and i get the message that cake is able to reach
it. my config file looks like this:

       public $default = array(
                'datasource' => 'Database/Mysql',
                'persistent' => false,
                'host' => 'localhost',
                'login' => 'xxxxxx',
                'password' => 'xxxxxxxx',
                'database' => 'cake',
                'prefix' => '',
                //'encoding' => 'utf8',
        );

Does anybody know what's the problem?

Thanks,
Marco

-- 
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
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to