Code: [2002] can not connect database.please check the config file.
Message: SQLSTATE[HY000] [2002] 由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。
File: D:\wwwroot\shanutec\wwwroot\vendor\phoenix\framework\src\Phoenix\PXPDO\AbstractDAO.php (Line:1703)
Trace: #0 D:\wwwroot\shanutec\wwwroot\vendor\phoenix\framework\src\Phoenix\PXPDO\AbstractDAO.php(1703): PDO->__construct('mysql:host=mysq...', 'sq_2019xpower', '2019xpower', Array)
#1 D:\wwwroot\shanutec\wwwroot\vendor\phoenix\framework\src\Phoenix\PXPDO\AbstractDAO.php(967): Phoenix\PXPDO\AbstractDAO->_lazyConn()
#2 D:\wwwroot\shanutec\wwwroot\vendor\phoenix\framework\src\Phoenix\PXPDO\AbstractDAO.php(911): Phoenix\PXPDO\AbstractDAO->prepare('SELECT * FROM `...', Array, 'READ')
#3 D:\wwwroot\shanutec\wwwroot\vendor\phoenix\framework\src\Phoenix\PXPDO\Mysql.php(165): Phoenix\PXPDO\AbstractDAO->prepareBindLevel2Cache('SELECT * FROM `...', Array)
#4 D:\wwwroot\shanutec\wwwroot\vendor\phoenix\framework\src\Phoenix\PXPDO\AbstractDecorator.php(401): Phoenix\PXPDO\Mysql->findAll()
#5 D:\wwwroot\shanutec\wwwroot\app\Repository\Impl\ArchivesImpl.php(245): Phoenix\PXPDO\AbstractDecorator->findAll()
#6 D:\wwwroot\shanutec\wwwroot\app\Service\Impl\ArchivesImpl.php(415): App\Repository\Impl\ArchivesImpl->getFooterLink('5')
#7 D:\wwwroot\shanutec\wwwroot\app\Service\Impl\ArchivesImpl.php(133): App\Service\Impl\ArchivesImpl->getFooterLink('5')
#8 D:\wwwroot\shanutec\wwwroot\app\ZhCN\Index.php(127): App\Service\Impl\ArchivesImpl->getCategoryRs('office', true)
#9 D:\wwwroot\shanutec\wwwroot\vendor\phoenix\framework\src\Phoenix\Routing\ProxyHandler.php(805): App\ZhCN\Index->category(true)
#10 D:\wwwroot\shanutec\wwwroot\vendor\phoenix\framework\src\Phoenix\Routing\ProxyFactory.php(1457): Phoenix\Routing\ProxyHandler->invoke('category', Array)
#11 D:\wwwroot\shanutec\wwwroot\vendor\phoenix\framework\src\Phoenix\Routing\Controller.php(2187): Phoenix\Routing\ProxyFactory->invoke('App\\ZhCN\\Index', 'category', Array)
#12 D:\wwwroot\shanutec\wwwroot\vendor\phoenix\framework\src\Phoenix\Routing\Controller.php(527): Phoenix\Routing\Controller->_controllerLoader()
#13 D:\wwwroot\shanutec\wwwroot\vendor\phoenix\framework\src\Phoenix\Routing\Controller.php(187): Phoenix\Routing\Controller->_runController()
#14 D:\wwwroot\shanutec\wwwroot\vendor\phoenix\framework\src\Phoenix\Routing\Controller.php(2585): Phoenix\Routing\Controller->run(Array, false)
#15 D:\wwwroot\shanutec\wwwroot\vendor\phoenix\framework\src\Phoenix\Foundation\Application.php(269): Phoenix\Routing\Controller::start(Array, false)
#16 D:\wwwroot\shanutec\wwwroot\vendor\phoenix\framework\src\Phoenix\Foundation\Application.php(71): Phoenix\Foundation\Application::dispatcher('/office/')
#17 D:\wwwroot\shanutec\wwwroot\app.php(9): Phoenix\Foundation\Application::bootstrap()
#18 {main}