Postgres code doesn't work with 16.2 (latest Postgres)

QuestionsPostgres code doesn't work with 16.2 (latest Postgres)
Abdullah asked 5 months ago

Just bought the code!

We’ve confirmed that we can connect from other code from the same machine. All details are identical to how it’s defined in the documentation (plus hours of other tests!).

Any ideas?

1 Answers
Abu answered 5 months ago

You can try one of the following configuration in config.php OR in the array passed to constructor.

$db_conf = array();
$db_conf[“type”] = “postgres”; // mysql,oci8(for oracle),mssql,postgres,sybase
$db_conf[“server”] = “localhost”;
$db_conf[“user”] = “postgres”;
$db_conf[“password”] = “a”;
$db_conf[“database”] = “postgres”;

$db_conf = array();
$db_conf[“type”] = “pdo”;
$db_conf[“server”] = “pgsql:host=localhost”;
$db_conf[“user”] = “postgres”; // username
$db_conf[“password”] = “a”; // password
$db_conf[“database”] = “test”; // database

First one uses Postgres extension, Second PDO. If you can share the code that can connect to your server, I’ll suggest the equivalent.

Your Answer

20 + 9 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?