Error executing cake bake all command


#1

As soon as I execute the command the system returns the same error:

C:\xampp\htdocs\outra pas\Vendor\cakephp\cakephp\app\Console>cake bake all

Welcome to CakePHP v2.9.5 Console

App : Console
Path: C:\xampp\htdocs\outra pas\Vendor\cakephp\cakephp\app\Console\

Bake All

Warning Error: include_once(C:\xampp\htdocs\outra pas\Vendor\cakephp\cakephp\app\Console\Config\database.php): failed to open stream: No such file or directory in [C:\xampp\htdocs\outra pas\Vendor\cakephp\cakephp\lib\Cake\Model\ConnectionManager.php, line 67]

Warning Error: include_once(): Failed opening ‘C:\xampp\htdocs\outra pas\Vendor\cakephp\cakephp\app\Console\Config\database.php’ for inclusion (include_path=‘C:\xampp\htdocs\outra pas\Vendor\cakephp\cakephp\lib;C:\xampp\php\PEAR’) in [C:\xampp\htdocs\outra pas\Vendor\cakephp\cakephp\lib\Cake\Model\ConnectionManager.php, line 67]

Error: The datasource configuration “default” was not found in database.php
#0 C:\xampp\htdocs\outra pas\Vendor\cakephp\cakephp\lib\Cake\Model\ConnectionManager.php(91): ConnectionManager::_getConnectionObject(‘default’)
#1 C:\xampp\htdocs\outra pas\Vendor\cakephp\cakephp\lib\Cake\Console\Command\Task\ModelTask.php(952): ConnectionManager::getDataSource(‘default’)
#2 C:\xampp\htdocs\outra pas\Vendor\cakephp\cakephp\lib\Cake\Console\Command\Task\ModelTask.php(889): ModelTask->getAllTables(‘default’)
#3 C:\xampp\htdocs\outra pas\Vendor\cakephp\cakephp\lib\Cake\Console\Command\Task\ModelTask.php(979): ModelTask->listAll(‘default’)
#4 C:\xampp\htdocs\outra pas\Vendor\cakephp\cakephp\lib\Cake\Console\Command\BakeShell.php(150): ModelTask->getName(‘default’)
#5 C:\xampp\htdocs\outra pas\Vendor\cakephp\cakephp\lib\Cake\Console\Shell.php(458): BakeShell->all()
#6 C:\xampp\htdocs\outra pas\Vendor\cakephp\cakephp\lib\Cake\Console\ShellDispatcher.php(219): Shell->runCommand(‘all’, Array)
#7 C:\xampp\htdocs\outra pas\Vendor\cakephp\cakephp\lib\Cake\Console\ShellDispatcher.php(66): ShellDispatcher->dispatch()
#8 C:\xampp\htdocs\outra pas\Vendor\cakephp\cakephp\app\Console\cake.php(47): ShellDispatcher::run(Array)
#9 {main}


#2

What is in your app/Config/database.php file? The error says you missing the $default array