전자정부 프로젝트에서 postgresql을 연결하는데 아래와 같은 에러가 발생하였다.
org.postgresql.util.PSQLException: The server requested SCRAM-based authentication, but no password was provided.
에러를 구글링해보니 스키마를 파라미터로 추가해넣어라고 하니 해겼되었다.
#이전코드
Globals.postgres.Url=jdbc:postgresql://192.168.0.100:5432/proj01
#변환코드
Globals.postgres.Url=jdbc:postgresql://192.168.0.100:5432/proj01?currentSchema=proj01
https://stackoverflow.com/questions/34783370/psqlexception-password-based-authentication
PSQLException: password-based authentication
Here is the Exception:when I run my testDao file, working on springs.Is there any path given to database in springs? org.postgresql.util.PSQLException: The server requested password-based
stackoverflow.com
'DB > Postgres' 카테고리의 다른 글
| Postgresql SSL 적용 (0) | 2023.04.03 |
|---|---|
| postgres 1분이상 실행중인 쿼리 검색 (0) | 2023.03.29 |
| postgresql 주말을 제외한 한 달의 모든 요일 얻기 (0) | 2023.03.29 |
| Postgresql 15 user create 유저생성 (0) | 2023.03.29 |
| Postgresql 쉼표로 구분된 열을 행으로 변환 (0) | 2023.03.29 |








