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