반응형
MySQL 8버전부터 url, user, password를 제외하고도 useSSL 옵션에 대한 설정이 필요해졌습니다.
기존 :
jdbc:mysql://localhost:3306/dbtest
해결 :
jdbc:mysql://localhost:3306/dbtest?useSSL=false&allowPublicKeyRetrieval=true
위에 문제를 해결하니 또다른 오류 발생...
java.sql.SQLException: The server time zone value 'KST' is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver (via the 'serverTimezone' configuration property) to use a more specific time zone value if you want to utilize time zone support.
이건 이제 커넥터 문제인데, 커넥터 5.1 이상부터는 시스템 기본 timezone을 사용하지 않는다고 합니다. 명시적으로 timezone을 설정해주어야 문제를 해결 할 수 있다고 하네요.
기존 :
jdbc:mysql://localhost:3306/dbtest?useSSL=false&allowPublicKeyRetrieval=true
해결 :
jdbc:mysql://localhost:3306/dbtest?useSSL=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Seoul
반응형
'Etc > TroubleShooting' 카테고리의 다른 글
DB 연동 jsp 파일 (0) | 2023.02.10 |
---|---|
[MySQL 8] 권한부여 (0) | 2023.02.10 |
systemctl start rc-local 오류 (0) | 2023.01.17 |
HTTPD 404 Not Found (0) | 2023.01.17 |
available:rsa-sha2-512, rsa-sha2-256 (0) | 2023.01.04 |