Fatal error: Uncaught PDOException: SQLSTATE[08006] [7] could not connect to server: Connection refused (0x0000274D/10061) Is the server running on host "localhost" (::1) and accepting TCP/IP connections on port 5432? could not connect to server: Connection refused (0x0000274D/10061) Is the server running on host "localhost" (127.0.0.1) and accepting TCP/IP connections on port 5432? in D:\WEB\book3d\sys\core\providers\DatabaseServiceProvider.php:39 Stack trace: #0 [internal function]: PDO->__construct('pgsql:host=loca...', 'postgres', 'huuthanh83', Array) #1 [internal function]: Phalcon\Db\Adapter\Pdo->connect(Array) #2 [internal function]: Phalcon\Db\Adapter\Pdo\Postgresql->connect(Array) #3 D:\WEB\book3d\sys\core\providers\DatabaseServiceProvider.php(39): Phalcon\Db\Adapter\Pdo->__construct(Array) #4 [internal function]: QQ\Core\Provider\DatabaseServiceProvider->QQ\Core\Provider\{closure}() #5 [internal function]: Phalcon\Di\Service->resolve(NULL, Object(Phalcon\Di)) #6 [internal function]: Phalcon\Di->get('db', NUL in D:\WEB\book3d\sys\core\providers\DatabaseServiceProvider.php on line 39