I'm trying to connect to PostgreSQL from NetBeans, but it is showing some errors:
Cannot establish a connection to
jdbc:postgresql://localhost:5432/postgres
usingorg.postgresql.Driver
(The authentication type 10 is not supported. Check that you have configured thepg_hba.conf
file to include the client's IP address or subnet, and that it is using an authentication scheme supported by the driver.)
I tried changing password in config file and also tried change the md5. How to resolve it and connect PostgreSQL using Java?