Codeigniter4 version 4.5.1 psql Database error "Unable to connect to the database". |
Hi All,
Im new to php ecosystem and currently working on fullstack web development especially in php codeigniter 4 framework. we use postgresql for data storage and state managements, and the current ci4 version 4.4.7 is running in production for some time, after we updated to version 4.5.1,our app Postgres connection issue occured says "CodeIgniter\Database\Exceptions\DatabaseException, Unable to connect to the database" but all the configuration are well tested and working while in version 4.4.7, in version 4.5.1 with same configuration it causes error. can you help me with this issue? thank you.
Show the DB Config and full error message.
Code: $ php spark config:check Database
DB Config:
Error message: currently changed the environment to development mode to capture the error,
I don't know why the connection error occurs.
This is sample configuration for Postgre. PHP Code: public array $default = [ And this is the differences between v4.4.7 and v4.5.1. PHP Code: --- a/system/Database/Postgre/Connection.php |
Welcome Guest, Not a member yet? Register Sign In |