:(

Db Error: database connect failed

错误位置

FILE: /alidata/www/default/tycode/tycore/Common/functions.php  LINE: 820

TRACE

#0 Think\Think::halt(Db Error: database connect failed) called at [/alidata/www/default/tycode/tycore/Common/functions.php:820]
#1 throw_exception(Db Error: database connect failed) called at [/alidata/www/default/tycode/Application/Common/Tool/Db.class.php:91]
#2 Common\Tool\Db::connect(slave) called at [/alidata/www/default/tycode/Application/Common/Tool/Db.class.php:137]
#3 Common\Tool\Db::getAll(SELECT * FROM `ttshop_testdata` WHERE ( id = NULL ) LIMIT 1 , slave) called at [/alidata/www/default/tycode/Application/Common/Tool/Model.class.php:652]
#4 Common\Tool\ModelDb->select(Array ([table] => `ttshop_testdata`,[field] => *,[where] => Array ([id] => ),[limit] => 1)) called at [/alidata/www/default/tycode/Application/Common/Tool/Model.class.php:306]
#5 Common\Tool\Model->find() called at [/alidata/www/default/tycode/Application/Home/Controller/GoodsController.class.php:574]
#6 Home\Controller\goodsController->php_jsonformat()
#7 ReflectionMethod->invoke(Home\Controller\goodsController Object ([] => ,[] => ,[] => ,[] => Array ())) called at [/alidata/www/default/tycode/tycore/Library/Think/App.class.php:173]
#8 Think\App::invokeAction(Home\Controller\goodsController Object ([] => ,[] => ,[] => ,[] => Array ()), php_jsonformat) called at [/alidata/www/default/tycode/tycore/Library/Think/App.class.php:110]
#9 Think\App::exec() called at [/alidata/www/default/tycode/tycore/Library/Think/App.class.php:204]
#10 Think\App::run() called at [/alidata/www/default/tycode/tycore/Library/Think/Think.class.php:127]
#11 Think\Think::start() called at [/alidata/www/default/tycode/tycore/tycore.php:97]
#12 require(/alidata/www/default/tycode/tycore/tycore.php) called at [/alidata/www/default/tycode/index.php:16]