连接GaussDB(DWS)报错:Invalid or unsupported by client SCRAM mechanisms

用postgres方式连接GaussDB(DWS)报错:Invalid or unsupported by client SCRAM mechanisms

报错内容

2023-12-27 21:43:35 Invalid or unsupported by client SCRAM mechanisms

org.postgresql.util.PSQLException: Invalid or unsupported by client SCRAM mechanisms

原因:password_encryption_type未兼容postgres访问

"使用show password_encryption_type可以查看密码的加密方式。当password_encryption_type=1是表示采用sha256方式对密码加密,兼容postgres客户端的MD5用户认证方式。password_encryption_type=2表示采用sha256方式对密码加密,此时不兼容postgres开源驱动和开源客户端。使用postgres开源生态工具连接会出现报错,连接GaussDB(DWS)出现如下报错:

The authentication type 10 is not supported.

Invalid or unsupported by client SCRAM mechanisms。"

解决办法:

1、修改password_encryption_type=1

2、需要重新创建用户去连接,连接成功

连接参考:https://zhuanlan.zhihu.com/p/646963995

连接和认证 - 安全和认证(postgresql.conf) - 《华为 openGauss (GaussDB) 1.0.1 使用手册》

【DWS】某局点使用工具连接数据库报错 (huawei.com)

你应该知道的数仓安全------安全认证-云社区

相关推荐
DarkAthena4 小时前
【GaussDB】会话里出现大量idle in transaction状态的问题排查
gaussdb
Gauss松鼠会2 天前
GaussDB(DWS)性能问题处理套路
服务器·数据库·postgresql·性能优化·gaussdb
Gauss松鼠会2 天前
GaussDB(DWS) SQL性能问题案例集
java·数据库·经验分享·spring boot·后端·sql·gaussdb
Gauss松鼠会3 天前
GaussDB(DWS)数据融合:Oracle增量数据迁移到DWS
java·数据库·算法·oracle·性能优化·gaussdb
DarkAthena5 天前
【GaussDB】 keep聚合SQL 性能优化分析:从 123s 到 18s 的优化之路
gaussdb
DarkAthena6 天前
【GaussDB】排查报错“ERROR: Plpgsql estate is null“
gaussdb
DarkAthena6 天前
【DuckDB】一条 SQL 同时连接 Oracle 和 GaussDB
oracle·gaussdb·duckdb
Gauss松鼠会8 天前
GaussDB(DWS) 日常维护命令
服务器·数据库·postgresql·性能优化·gaussdb·经验总结
Gauss松鼠会8 天前
GaussDB(DWS) GUC参数修改、查看
java·数据库·sql·数据库开发·gaussdb
UtopianCoding8 天前
数据库语法对比详细规则
数据库·mysql·gaussdb