:-O
Database connect error: SQLSTATE[HY000] [2002] Connection refused code: 2002
File:
File:/data2/wwwroot/company_system/client/coolphp/Connection.php Line:129
Trace
Exception: Database connect error: SQLSTATE[HY000] [2002] Connection refused code: 2002 in /data2/wwwroot/company_system/client/coolphp/Connection.php:129
Stack trace:
#0 /data2/wwwroot/company_system/client/coolphp/Connection.php(79): Cool\Connection::connect(Array, Array)
#1 /data2/wwwroot/company_system/client/coolphp/Model.php(83): Cool\Connection::instance(Array, Array)
#2 /data2/wwwroot/company_system/client/coolphp/Model.php(53): Cool\Model->connect('mysql', 'default', Array)
#3 /data2/wwwroot/company_system/client/coolphp/Model.php(65): Cool\Model->__construct()
#4 /data2/wwwroot/company_system/client/coolphp/Model.php(146): Cool\Model::instance()
#5 /data2/wwwroot/company_system/client/app/Model/Question.php(16): Cool\Model::where('question_id', 166564)
#6 /data2/wwwroot/company_system/client/app/Controller/Api/Ask/DetailController.php(19): App\Model\Question::getDetail(166564)
#7 [internal function]: App\Controller\Api\Ask\DetailController->index()
#8 /data2/wwwroot/company_system/client/coolphp/App.php(27): call_user_func_array(Array, Array)
#9 /data2/wwwroot/company_system/client/public/haolesi.com/index.php(4): Cool\App::run()
#10 {main}