-
Establishing SSL connection without server's identity verification is not recommended.포트폴리오 (웹 개발)/계좌관리 웹애플리케이션 2023. 5. 13. 15:27
에러 :
Sat May 13 22:11:16 KST 2023 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
원인: 검색해보니 'MySQL 이 8 로 업그레이드되면서 여러 가지 보안이 강화되었고 연결시 기본적으로 SSL 통신을 사용하도록 변경되었습니다...' 와 같은 내용이 확인됨. 내 컴퓨터의 mysql 버전을 확인해보니 8.xx 인것으로 확인됨. 아마 이 문제 때문인 듯 하다..
해결: 뒤에 '?useSSL=false' 추가.
private static String dburl="jdbc:mysql://localhost:3306/connectdb?useSSL=false";
쿼리실행 성공!! 끝--
'포트폴리오 (웹 개발) > 계좌관리 웹애플리케이션' 카테고리의 다른 글
load() 예외를 발생시켰습니다.java.lang.ClassNotFoundException (0) 2023.06.09 java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException (1) 2023.06.09 java.sql.SQLException: Unable to load authentication plugin 'caching_sha2_password'. (0) 2023.05.13 웹서버 vs WAS 서버 (0) 2022.08.07 DB 설계 (0) 2022.08.01