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

(This post was last modified: 09-04-2020, 07:56 AM by jreklund.)

Dear Friends,
I try to do your code with postgres. But when I click upload button i got error as "CodeIgniter\Database\Exceptions\DatabaseException #8 Unable to connect to the database."

My connection details on localhost is:

PHP Code:
public $default = [
'DSN' => '',
'hostname' => 'localhost',
'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,
]; 

Please advise .. I am new in CI 4.0.4

I run the code using spark (php spark serve)

Waiting fast reply ...
Thanks
Anes P A

Attached Files Thumbnail(s)
   
Reply


Messages In This Thread
Unable to connect to the database. (postgres) - by postgres - 09-03-2020, 10:16 PM



Theme © iAndrew 2016 - Forum software by © MyBB