无法在Cakephp shell中加载数据库配置

无法在Cakephp shell中加载数据库配置,php,cakephp,cakephp-2.0,cakephp-3.0,Php,Cakephp,Cakephp 2.0,Cakephp 3.0,蛋糕控制台抛出错误数据库连接“Mysql”丢失或无法创建。 我已经在报表shell中创建了名为report的shell,我正在从modelUser ReportShell.php class ReportShell extends AppShell { public $uses = array('User'); public function main() { $opt =$this->User->find(); $this->

蛋糕控制台抛出错误数据库连接“Mysql”丢失或无法创建。

我已经在报表shell中创建了名为
report
的shell,我正在从model
User

ReportShell.php

class ReportShell extends AppShell {

    public $uses = array('User');

    public function main() {
        $opt =$this->User->find();
        $this->out(opt);
    }

}

当我运行这个命令
cake report-app/opt/lampp/htdocs/corpveda/app
时,我得到以下错误


注意:我使用xampp服务器在Ubuntu中运行php应用程序。

那么,关于错误消息到底有什么不清楚的地方呢?如果你读了它,就按它的要求去做。公平地说,信息可能更准确。。。不幸的是,来自PDO异常的更具体的消息,以及CakePHP源代码中定义的消息,如“选定的驱动程序未启用”在CLI上被吞没。我不明白为什么数据配置是从
usr/share/php
路径加载的,尽管我的应用程序位于
/opt/lampp/htdocs/corpveda
应用程序正在浏览器中运行,但在通过CLI运行时失败了