Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- Protecle
- load order
- fractional seconds
- getDateCellValue
- 운영체제별 차이
- AuditingEntityListener
- 버전 문자열 비교
- MYSQL
- yml
- https
- spring boot
- +9:00
- mysql8업그레이드
- mysql not equal null
- MSSQL
- jdbc utf8mb4
- apatch poi
- 1*1000
- sendFractionalSeconds
- 운동해서 광명찾자
- java jdbc utf8mb4 연결 오류
- 티스토리챌린지
- jdbc characterencoding utf8mb4
- getEntityGraph
- mysql equal null
- mysql =
- createEntityGraph
- NamedEntityGraph
- 오블완
- RootGraph
Archives
- Today
- Total
Hello
MySql 버전에 따른 JDBC 설정 본문
728x90
어플리케이션에서 db 연결을 위해 datasource 작성 시 jdbc driver를 선택합니다.
MySql의 경우 com.mysql.cj.jdbc.Driver, com.mysql.jdbc.Driver 둘 중 하나를 사용합니다. 이 둘의 차이는 사용하는 MySql connector의 버전입니다.
Connector/J 5.x : com.mysql.jdbc.Driver
Connector/J 8.x : com.mysql.cj.jdbc.Driver
아래 공식 문서를 확인하면 버전이 변경되며 클래스 및 인터페이스 명칭 변경 된 것을 확인할 수 있습니다.
참고 : https://dev.mysql.com/doc/connector-j/8.1/en/connector-j-api-changes.html
728x90
'DB' 카테고리의 다른 글
[SQL SERVER] limitation of 2100 items for parameters (0) | 2023.09.22 |
---|---|
어플리케이션에서 시간 처리 시 반올림 되는 경우 (0) | 2023.09.05 |
MySql datetime 반올림 (0) | 2023.08.30 |
[MySQL] 특정 조건일 때 join이 필요한 경우 (0) | 2023.07.28 |
조회 쿼리 sort 성능 개선 (0) | 2023.07.21 |