Code: | [2002] can not connect database.please check the config file. |
---|---|
Message: | SQLSTATE[HY000] [2002] Connection timed out |
File: | /data/user/htdocs/vendor/phoenix/framework/src/Phoenix/PXPDO/AbstractDAO.php (Line:868) |
Trace: | #0 /data/user/htdocs/vendor/phoenix/framework/src/Phoenix/PXPDO/AbstractDAO.php(868): PDO->__construct('mysql:host=xdm7...', 'xdm721922582', 'hxint7k7kQW', Array) #1 /data/user/htdocs/vendor/phoenix/framework/src/Phoenix/PXPDO/AbstractDAO.php(494): Phoenix\PXPDO\AbstractDAO->_lazyConn() #2 /data/user/htdocs/vendor/phoenix/framework/src/Phoenix/PXPDO/AbstractDAO.php(466): Phoenix\PXPDO\AbstractDAO->prepare('SELECT c.*, cs....', Array, 'READ_ONE') #3 /data/user/htdocs/vendor/phoenix/framework/src/Phoenix/PXPDO/AbstractDAO.php(729): Phoenix\PXPDO\AbstractDAO->prepareBindLevel2Cache('SELECT c.*, cs....', Array, 'READ_ONE') #4 /data/user/htdocs/vendor/phoenix/framework/src/Phoenix/PXPDO/Mysql.php(101): Phoenix\PXPDO\AbstractDAO->sqlDataReadOne('SELECT c.*, cs....', Array) #5 /data/user/htdocs/vendor/phoenix/framework/src/Phoenix/PXPDO/AbstractDecorator.php(205): Phoenix\PXPDO\Mysql->find() #6 /data/user/htdocs/app/Repository/Impl/CategoryImpl.php(23): Phoenix\PXPDO\AbstractDecorator->find() #7 /data/user/htdocs/app/Service/Impl/ArchivesImpl.php(46): App\Repository\Impl\CategoryImpl->find('gfgg', 1) #8 /data/user/htdocs/app/ZhCN/Index.php(55): App\Service\Impl\ArchivesImpl->getCategoryRs('gfgg', true) #9 /data/user/htdocs/vendor/phoenix/framework/src/Phoenix/Routing/ProxyHandler.php(426): App\ZhCN\Index->category(true) #10 /data/user/htdocs/vendor/phoenix/framework/src/Phoenix/Routing/ProxyFactory.php(773): Phoenix\Routing\ProxyHandler->invoke('category', Array) #11 /data/user/htdocs/vendor/phoenix/framework/src/Phoenix/Routing/Controller.php(1112): Phoenix\Routing\ProxyFactory->invoke('App\\ZhCN\\Index', 'category', Array) #12 /data/user/htdocs/vendor/phoenix/framework/src/Phoenix/Routing/Controller.php(273): Phoenix\Routing\Controller->_controllerLoader() #13 /data/user/htdocs/vendor/phoenix/framework/src/Phoenix/Routing/Controller.php(94): Phoenix\Routing\Controller->_runController() #14 /data/user/htdocs/vendor/phoenix/framework/src/Phoenix/Routing/Controller.php(1313): Phoenix\Routing\Controller->run(Array, false) #15 /data/user/htdocs/vendor/phoenix/framework/src/Phoenix/Foundation/Application.php(136): Phoenix\Routing\Controller::start(Array, false) #16 /data/user/htdocs/vendor/phoenix/framework/src/Phoenix/Foundation/Application.php(36): Phoenix\Foundation\Application::dispatcher('gfgg') #17 /data/user/htdocs/app.php(4): Phoenix\Foundation\Application::bootstrap() #18 {main} |