PHP - Codeigniter - Connecting to a PostgreSQL fails PHP - Codeigniter - Connecting to a PostgreSQL fails codeigniter codeigniter

PHP - Codeigniter - Connecting to a PostgreSQL fails


I've had a similar problem when i first setup codeigniter with postgres. Postgres runs on a different port, so you'll need specify the port in the database configuration as such; 5432 was the default port postgres chose since i already had mysql installed.

    $db['default']['port'] = 5432;