我正在尝试连接我的jhipster项目和postgresql,但是我得到了一个关于密码的错误。
下面是我得到的错误
HHH000342: Could not obtain connection to query metadata : FATAL: password authentication failed for user "fabrice"我在pgadmin中看到,密码是正确的,用户名也是正确的。
我的应用程序-dev.yml
datasource:
type: com.zaxxer.hikari.HikariDataSource
url: jdbc:postgresql://localhost:5432/fabrice
username: fabrice
password: postgres
hikari:
poolName: Hikari
auto-commit: false这是postgres用户的照片:

我想这就是你想要的:
CREATE ROLE fabrice WITH
LOGIN
NOSUPERUSER
INHERIT
NOCREATEDB
NOCREATEROLE
NOREPLICATION
ENCRYPTED PASSWORD 'md576436d4007f2e5338a99e5a76181a7a4';发布于 2020-11-16 05:37:15
问题是postgreSql使用的端口是5433,而不是5432 .So对于其他人,您可以检查PostgreSQL所使用的端口
https://stackoverflow.com/questions/64848010
复制相似问题