Unable to connect to Postgres DB due to the authentication type 10 is not supported
I solved similar issue by applying below steps in PostgreSQL Version 13:
- Change
password_encryption
tomd5
inpostgresql.conf
Windows: C:\Program Files\PostgreSQL\13\data\postgresql.conf
GNU/Linux: /etc/postgresql/13/main/postgresql.conf
- Change
scram-sha-256
tomd5
inpg_hba.conf
Windows: C:\Program Files\PostgreSQL\13\data\pg_hba.conf
GNU/Linux: /etc/postgresql/13/main/pg_hba.conf
host all all 0.0.0.0/0 md5
Change Password ( this restore password in md5 format).
Example:
ALTER ROLE postgres WITH PASSWORD 'root'
;Make sure you set
listen_addresses = '*'
inpostgresql.conf
if you are working non production environment.
DBeaver PostgreSQL Database - SCRAM authentication is not supported by this driver
I had same error and in my situation I had old database drivers. These steps fixed it for me:
- Go to Database Driver Manager
- Select PostgreSQL (either double click or single select and then "Edit ...")
- Click on "Download/Update"
- Choose newer version (see bold version text) e.g. 42.2.18 for org.postgresql:postgresql:RELEASE
- Press "Download"
Related Topics
Text-Mouseover Popups Over a Swing Jtextarea
Why Does (360/24)/60 = 0 ... in Java
Adding JPAnels from Other Classes to the Cardlayout
Jtable with Titled Rows and Columns
Detecting Collision of Two Sprites That Can Rotate
12:Xx Shown as 00:Xx in Simpledateformat.Format("Hh:Mm:Ss")
How to Get a Defaulttablemodel Object's Data into a Subclass of Defaulttablemodel
JPA and Hibernate - Criteria VS. Jpql or Hql
Why Does Sun.Misc.Unsafe Exist, and How Can It Be Used in the Real World
Run Main Class of Maven Project
What Is the Class Object (Java.Lang.Class)
How to Remove Leading Zeros from Alphanumeric Text
Override Default Spring-Boot Application.Properties Settings in Junit Test
Spring Boot How to Hide Passwords in Properties File