Welcome Guest, Not a member yet? Register   Sign In
Unable to connect to the database. (postgres)
#4

(09-10-2020, 11:28 AM)InsiteFX Wrote: If you run it using spark it most likely has a port number also

So it would be 'hostname' = 'localhost:8080' or something like that.

If I run it on my system it is http://localhost:8080
I added that 8080 in localhost as

Quote:public $default = [
'DSN'      => 'pgsql:host=localhost;port=5432;dbname=demo;user=postgres;password=123',
'hostname' => 'pgsql:host=localhost:8080;dbname=demo',
'username' => 'postgres',
'password' => '123',
'database' => 'demo',
'DBDriver' => 'Postgre',
'DBPrefix' => '',
'pConnect' => false,
'DBDebug'  => (ENVIRONMENT !== 'production'),
'cacheOn'  => false,
'cacheDir' => '',
'charset'  => 'utf8',
'DBCollat' => 'utf8_general_ci',
'swapPre'  => '',
'encrypt'  => false,
'compress' => false,
'strictOn' => false,
'failover' => [],
'port'    => 5432,
];




Still the same Error...
Reply


Messages In This Thread
RE: Unable to connect to the database. (postgres) - by postgres - 09-11-2020, 04:25 AM



Theme © iAndrew 2016 - Forum software by © MyBB