将我的 jhipster 项目连接到 postgresql
Connecting my jhipster project to postgresSql
我正在尝试将我的 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';
问题是 postgreSql 使用的端口是 5433 而不是 5432。所以对于其他人,您可以检查 postgresql 使用的端口
我正在尝试将我的 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';
问题是 postgreSql 使用的端口是 5433 而不是 5432。所以对于其他人,您可以检查 postgresql 使用的端口