MySQL 과 JDBC 연동 시 한글 깨짐이 발생
----->해결 방안
1. table 생성 시 뒤에 charset으로 utf-8 표기
Create table member( id int(6) not null, username nvarchar(3) not null, dept nvarchar(5) not null, birth nvarchar(8) not null, email nvarchar(20) not null ) charset="utf8"; |
2. 연결된 database의 속성(Properties)에 들어간다
3.Driver Propertiest → URL을 수정한다.
localhost 뒤에 ? useUnicode=true&characterEncoding=utf8 작성
그래도 안된다면 &serverTimezone=UTC 추가 작성
** 왜 인지 모르겠으나 최신(2019) 버전 이클립스와 mySQL은 한글깨짐 해결 ....X ㅜㅜㅜ
'Study > Database' 카테고리의 다른 글
[Database System Concepts] 2.관계형 모델 소개 (2) | 2019.07.24 |
---|---|
[Database System Concepts] 1.소개 - 문제풀이 (0) | 2019.07.24 |
[Database System Concepts] 0. (0) | 2019.06.25 |
[MySQL] 커맨드창으로 Database 추가, 사용자 생성 및 권한 설정 (0) | 2019.05.01 |
[MySQL] MySQL download 및 설치 방법 (0) | 2019.04.08 |
댓글