★표시는 비공개 정보입니다.
오류내용
* What went wrong:
Execution failed for task ':dams-common:flywayBaseline'.
> Error occurred while executing flywayBaseline
Unable to obtain connection from database (jdbc:postgresql://localhost:★/★) for user '★': ?����???��?��?: ??��??? "★"?? password ★?????? ��?����?����?��?��? (pgjdbc: autodetected server-encoding to be ISO-8859-1, if the message is not readable, please check database logs and/or host, port, dbname, user, password, pg_hba.conf)
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
SQL State : 28P01
Error Code : 0
Message : ?����???��?��?: ??��??? "★"?? password ★?????? ��?����?����?��?��? (pgjdbc: autodetected server-encoding to be ISO-8859-1, if the message is not readable, please check database logs and/or host, port, dbname, user, password, pg_hba.conf)
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
발생 원인
오류가 발생한 이유는 DB User 정보를 잘못적었거나, User 정보가 없을 경우에 발생합니다.
기존에 user 정보가 있어 정상작동하다가 갑자기 위 오류가 발생하게 된다면, DB 업그레이드 혹은 업데이트가 의심됩니다. 저 또한 업그레이드 혹은 업데이트 이후 user 정보가 삭제되어 서버 실행 시 위 오류가 발생했습니다.
해결 방안
- JDBC 설정 시 user 정보가 정확하게 적혀있는지 확인
- 설정이 정상이라면, DB에 해당 user가 존재하는지 확인
'[개발] 프로그래밍 > Web, Spring, Java' 카테고리의 다른 글
[Spring Boot] Junit Test 오류 (org.junit.platform.launcher.core.EngineDiscoveryOrchestrator lambda$logTestDescriptorExclusionReasons$7) (0) | 2021.12.10 |
---|---|
[Spring Boot] application.properties 설정을 jar 파일 외부에서 주입 (0) | 2021.05.21 |
백엔드 면접 기초 질문 답변(51~60) (0) | 2021.02.05 |
백엔드 면접 기초 질문 답변(36~50) (0) | 2021.02.05 |
백엔드 면접 기초 질문 답변(21~35) (1) | 2021.02.05 |
댓글