WHYGRAM / WHYGRAM_logs

0 stars 0 forks source link

STUDY - SQLInvalidAuthorizationSpecException #3

Open tg2021 opened 3 years ago

tg2021 commented 3 years ago


java.sql.SQLInvalidAuthorizationSpecException: Could not connect to address=(host=localhost)(port=3308)(type=master) : (conn=220) Access denied for user 'User'@'localhost' (using password: YES)

해결방법
datasource:
  user:  로 되어있었다
datasource:
  username: 으로 고치면 된다.

참고자료
https://velog.io/@dbal9357/%EC%98%A4%EB%A5%98-SQL%EC%97%B0%EA%B2%B0-%EC%95%88-%EB%90%A8.java.sql.SQLNonTransientConnectionException-Could-not-connect-to-addresshostlocalhostport3306
HyeonJin-Jang commented 3 years ago

yaml 에 오타가 나면 에러가 발생하는 구나

mybatis:
  mapper-locations: mybatis-mapper/**/*.xml
  type-aliases-package: com.koreait.facebook

여기서 package를 오타내서 에러가 발생하기도 했대