cannot connect to postgres 10
cannot connect to postgres 10
Hi,
I installed a postgres 10.0 beta3 locally on my windows machine. Created one database "dbtest".
Using pgadmin 4, I can connect, create tables, indexes, ...
Using TUniConnection I can't connect, even at design time. Component tells (in french) Password authentication failed for user "postgres".
Tried 127.0.0.1 and localhost, port 5432, user postgres and postgres password specified at install (this password works with pgadmin). It doesn't work with TUniConnection. telnet 127.0.0.1 5432 works.
pg_hba.conf holds:
# IPv4 local connections:
host all all 127.0.0.1/32 md5
Any hint?
I installed a postgres 10.0 beta3 locally on my windows machine. Created one database "dbtest".
Using pgadmin 4, I can connect, create tables, indexes, ...
Using TUniConnection I can't connect, even at design time. Component tells (in french) Password authentication failed for user "postgres".
Tried 127.0.0.1 and localhost, port 5432, user postgres and postgres password specified at install (this password works with pgadmin). It doesn't work with TUniConnection. telnet 127.0.0.1 5432 works.
pg_hba.conf holds:
# IPv4 local connections:
host all all 127.0.0.1/32 md5
Any hint?
Re: cannot connect to postgres 10
Hello,
I do not have a ready PostgreSQL 10 server to test. Would you please try changing below in your pg_hba.conf, restart the server and try to connect using TUniConnection.
If it works, please report here. Similar problem was solved several days after initial release of UniDAC 7.0.2 and download link updated keeping version number same after the fix implemented.
Maybe problem is somewhat related with PostgreSQL 10 adding a SCRAM authentication method. However, that needs to be activated in your pg_hba.conf and as to information you provide this is not the case.
I do not have a ready PostgreSQL 10 server to test. Would you please try changing below in your pg_hba.conf, restart the server and try to connect using TUniConnection.
Code: Select all
host all all 127.0.0.1/32 trust
Maybe problem is somewhat related with PostgreSQL 10 adding a SCRAM authentication method. However, that needs to be activated in your pg_hba.conf and as to information you provide this is not the case.
Re: cannot connect to postgres 10
At the official developers' website, only PostgreSQL 10 Beta is available for download. Therefore, we haven't tested this version for compatibility with our DAC products. After the final version of PostgreSQL 10 is released, we will support it officially in PgDAC and UniDAC.
Re: cannot connect to postgres 10
Concerning trust, it is annoying for 2 reasons:
* if trust AND md5 are both enabled in pg_hba.conf, it doesn't work, connection is refused.
* trust means "no password check - always allow connection", it allows anybody to connect wthout knowing the password.
Let's hope this will be fixed when pg 10 will be supported (soon I hope, current release is beta 3).
* if trust AND md5 are both enabled in pg_hba.conf, it doesn't work, connection is refused.
* trust means "no password check - always allow connection", it allows anybody to connect wthout knowing the password.
Let's hope this will be fixed when pg 10 will be supported (soon I hope, current release is beta 3).
Re: cannot connect to postgres 10
If memory serves PostgreSQL 10 is to be released in November. We still have months, literally.
Re: cannot connect to postgres 10
Sorry guys,
the problem is the same agains official postgres 9.6.4.
md5 (password) authentication doesn't work.
the problem is the same agains official postgres 9.6.4.
md5 (password) authentication doesn't work.
Re: cannot connect to postgres 10
Are you sure that you are using latest 7.0.2?
Please see my first reply. Devart released 7.0.2 and several days later they released new binaries with same version number.
Edit: I cannot recreate the problem. All is good and working in my tests. UniDAC 7.0.2, PostgreSQL 9.6.4. pg_hba.conf having following lines:
Please see my first reply. Devart released 7.0.2 and several days later they released new binaries with same version number.
Edit: I cannot recreate the problem. All is good and working in my tests. UniDAC 7.0.2, PostgreSQL 9.6.4. pg_hba.conf having following lines:
Code: Select all
# IPv4 local connections:
host all all 127.0.0.1/32 md5
host all all 0.0.0.0/0 md5
hostssl all all 0.0.0.0/0 md5 clientcert=1
Re: cannot connect to postgres 10
yes sure. But I am using the default postgres user to connect. I didn't create other user using "create user ...".
Re: cannot connect to postgres 10
I just tested with default user postgres. No problems.
However, I am using Delphi Tokyo and you seem to be using CBuilder Seattle. Problem maybe in your version of the release.
However, I am using Delphi Tokyo and you seem to be using CBuilder Seattle. Problem maybe in your version of the release.
Re: cannot connect to postgres 10
What seems strange (9.6) is that if both trust and md5 are allowed in pg_hba.conf, connection is refused from component even if trust is set.
If only trust is allowed in pg_hba.conf, connection is allowed from component.
If only trust is allowed in pg_hba.conf, connection is allowed from component.