:-O
Database connect error: SQLSTATE[HY000] [2002] Connection refused code: 2002
File:
File:/www/wwwroot/270i.com/coolphp/Connection.php Line:129
Trace
Exception: Database connect error: SQLSTATE[HY000] [2002] Connection refused code: 2002 in /www/wwwroot/270i.com/coolphp/Connection.php:129
Stack trace:
#0 /www/wwwroot/270i.com/coolphp/Connection.php(79): Cool\Connection::connect(Array, Array)
#1 /www/wwwroot/270i.com/coolphp/Model.php(83): Cool\Connection::instance(Array, Array)
#2 /www/wwwroot/270i.com/coolphp/Model.php(53): Cool\Model->connect('mysql', 'default', Array)
#3 /www/wwwroot/270i.com/coolphp/Model.php(65): Cool\Model->__construct()
#4 /www/wwwroot/270i.com/coolphp/Model.php(146): Cool\Model::instance()
#5 /www/wwwroot/270i.com/app/Model/SiteCategory.php(145): Cool\Model::where(Array)
#6 /www/wwwroot/270i.com/app/Controller/Www/InitController.php(20): App\Model\SiteCategory::getSiteList('category_index', 0)
#7 [internal function]: App\Controller\Www\InitController->__construct()
#8 /www/wwwroot/270i.com/coolphp/Container.php(166): ReflectionClass->newInstanceArgs(Array)
#9 /www/wwwroot/270i.com/coolphp/Container.php(128): Cool\Container->build('App\\Controller\\...', Array)
#10 /www/wwwroot/270i.com/coolphp/App.php(19): Cool\Container->get('App\\Controller\\...')
#11 /www/wwwroot/270i.com/public/www/index.php(83): Cool\App::run()
#12 {main}