简体   繁体   English

DBeaver PostgreSQL 数据库 - 此驱动程序不支持 SCRAM 身份验证

[英]DBeaver PostgreSQL Database - SCRAM authentication is not supported by this driver

I am trying to add a PostgreSQL database to DBeaver and am getting the following error when I try to connect to the database.我正在尝试将 PostgreSQL 数据库添加到 DBeaver,但在尝试连接到该数据库时出现以下错误。 I'm using DBeaver Version 7.2.3.202010191702.我正在使用 DBeaver 版本 7.2.3.202010191702。 And after receiving this message I installed the latest version of the JDK (11.0.9) and pgJDBC (postgresql-42.2.18.jar).收到此消息后,我安装了最新版本的 JDK (11.0.9) 和 pgJDBC (postgresql-42.2.18.jar)。 I've not had PostgreSQL on this machine yet, so it's a fresh install of the latest version (v13).我还没有在这台机器上安装 PostgreSQL,所以它是最新版本 (v13) 的全新安装。 Any suggestions?有什么建议么?

SCRAM authentication is not supported by this driver.此驱动程序不支持 SCRAM 身份验证。 You need JDK >= 8 and pgjdbc >= 42.2.0 (not ".jre" vesions)您需要 JDK >= 8 和 pgjdbc >= 42.2.0(不是“.jre”版本)

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 ...")选择 PostgreSQL(双击或单选,然后“编辑...”)
  • Click on "Download/Update"点击“下载/更新”
  • Choose newer version (see bold version text) eg 42.2.18 for org.postgresql:postgresql:RELEASE为 org.postgresql:postgresql:RELEASE 选择较新的版本(参见粗体版本文本)例如 42.2.18
  • Press "Download"按“下载”

In my case, JRE version postgres being used in Pom.xml.就我而言,在 Pom.xml 中使用了 JRE 版本的 postgres。 Update it to the latest version and it should work将其更新到最新版本,它应该可以工作

Even using all the tips and tricks found on SO I was not able to connect to PGSQL 14 DBs.即使使用在 SO 上找到的所有提示和技巧,我也无法连接到 PGSQL 14 数据库。
I fixed it by using PostgreSQL (Old) driver, and it now works.我使用PostgreSQL (Old)驱动程序修复了它,现在可以使用了。

i have a problem similar to yours.step 1> open folder PostgreSQL\14\data,edit postgresql.config fix password_encryption to md5 step 2> alter all METHOD value to password, in pg_hba.conf step 3> restart ur pg server我有一个类似于你的问题。步骤 1> 打开文件夹 PostgreSQL\14\data,编辑 postgresql.config 将密码加密修复为 md5 步骤 2> 将所有 METHOD 值更改为密码,在 pg_hba.conf 步骤 3> 重新启动你的 pg 服务器

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在Dbeaver中将数据库加载到Postgresql中 - Load database into Postgresql in Dbeaver 如何解决 Postgresql SCRAM 身份验证问题? - How can I solve Postgresql SCRAM authentication problem? 从 DBeaver 连接到 Docker 容器中的 PostgreSQL 数据库 - Connect to PostgreSQL Database in Docker Container from DBeaver 在 PostgreSQL 中导入数据库时出错:'psql: authentication method 10 not supported'FAILURE' - Error importing database in PostgreSQL: 'psql: authentication method 10 not supported" FAILURE' dbeaver 连接到远程 postgresql 数据库超时 - dbeaver connection to remote postgresql database times out 不支持 PostgreSQL 身份验证方法 10 - PostgreSQL authentication method 10 not supported 我试图将 postgresql md5 更改为 scram-sha-256 并且我得到 FATAL 密码身份验证失败 - I tried to change postgresql md5 to scram-sha-256 and I get FATAL password authentication failed 如何在 POSTGRESQL 服务器中对具有 TLS 配置的用户使用基于 SCRAM-SHA-256 的身份验证? - How to use SCRAM-SHA-256 based authentication for user with TLS config in POSTGRESQL server? DBeaver / PostgreSQL:“错误:数据库已存在”,但我找不到它 - DBeaver / PostgreSQL: "Error: database already exists", but I can't find it DBeaver在连接中只能看到默认的PostgreSQL数据库 - DBeaver can only see default PostgreSQL database in connection
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM