Welcome Guest, Not a member yet? Register   Sign In
Connect to PostgreSQL DB with DSN and SSL Certificate
#1
Exclamation 

I currently use the database configuration using array, in a simple way.
But I will need to migrate to a PostgreSQL database that requires ssl (required) mode and also has a CRT certificate.

How do I do this type of configuration in CodeIgniter 3?

I tried to remove the entire array and set $db ['default'] ['dsn'] = 'postgresql://your_username:your_password@ip:5432/database_name?sslmode=require' but returns You have not selected a database type to connect to.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB