Welcome Guest, Not a member yet? Register   Sign In
database.default.dsn not working
#4

Try to create a database connection.
PHP Code:
pg_connect('host=xx.xx.xx.xx port=5432 dbname=xx username=xxx password=xxxx sslmode=verify-ca sslrootcert=/ssl/db/server-ca.pem sslcert=/ssl/db/client-cert.pem sslkey=/ssl/db/client-key.pem'); 

If the connection failed or without SSL, then you can not read further.

If the connection succeeded.
PHP Code:
database.default.DSN ='pgsql:host=xx.xx.xx.xx;port=5432;dbname=xx;username=xxx;password=xxxx;sslmode=verify-ca;sslrootcert=/ssl/db/server-ca.pem;sslcert=/ssl/db/client-cert.pem;sslkey=/ssl/db/client-key.pem'
database.default.DBDriver Postgre 
Note that DSN !== dsn. Case sensitive parameter.
Reply


Messages In This Thread
database.default.dsn not working - by rwilson12 - 02-05-2022, 08:49 AM
RE: database.default.dsn not working - by iRedds - 02-05-2022, 11:29 AM
RE: database.default.dsn not working - by iRedds - 02-05-2022, 08:12 PM



Theme © iAndrew 2016 - Forum software by © MyBB