[mysql] error : java.sql.SQLException: Unknown initial character set index '255' received from server. Initial client character set can be forced via the 'characterEncoding' property.

2020. 5. 26. 15:57·Error code 모음/1. SQL errors
반응형

mysql JDBC 를 이용해 데이터를 INSERT 하는 경우 데이터베이스 설정이 달라서

데이터가 깨져 들어갈 경우 위와같은 에러가 발생한다.  

아래 내용 을 참고하되

 

true&charater~ 부분은

true&char~ 해서 고치자

 

참고링크


https://snepbnt.tistory.com/93

 

[mysql error] "characterEncoding" 엔티티에 대한 참조는 ';' 구분자로 끝나야 합니다.

JDBC 에 접속할 때, 문자열이 제대로 인코딩되지 않아 인코딩 설정을 해주다가 발생을 했다. jdbc:mysql://localhost:3306/spring??useUnicode=true..

snepbnt.tistory.com

https://kekedie.tistory.com/45

 

Mysql JDBC 한글(UTF-8) 깨짐

다국어 지원을 위해 UTF-8를 주로 쓰는 편임 Mysql JDBC를 이용해 insert를 하는 경우 데이터베이스가 utf8임에도 깨져 들어가는 경우. JDBC Connection URL에 useUnicode, characterEncoding파라미터를 붙여줌...

kekedie.tistory.com

 

반응형

'Error code 모음 > 1. SQL errors' 카테고리의 다른 글

[MySQL Error] Data too long for column  (0) 2020.09.12
[MySQL Error] " Unknown column in 'field list' " error on MySQL Update query  (0) 2020.08.04
[mysql error] "characterEncoding" 엔티티에 대한 참조는 ';' 구분자로 끝나야 합니다.  (0) 2020.05.26
[Mysql 에러] The server time zone value '????α? ????' 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 specifc time zone value i..  (0) 2020.05.26
[Mysql 에러] ERROR 1045 (28000): Access denied for user 'ODBC'@'localhost' (using password: NO) 오류  (0) 2020.05.26
'Error code 모음/1. SQL errors' 카테고리의 다른 글
  • [MySQL Error] Data too long for column
  • [MySQL Error] " Unknown column in 'field list' " error on MySQL Update query
  • [mysql error] "characterEncoding" 엔티티에 대한 참조는 ';' 구분자로 끝나야 합니다.
  • [Mysql 에러] The server time zone value '????α? ????' 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 specifc time zone value i..
쟈누
쟈누
Ad astra per aspera
    반응형
  • 쟈누
    쟈누의 기록공간
    쟈누
  • 전체
    오늘
    어제
    • 분류 전체보기 (444)
      • AWS (31)
        • Glue (4)
        • S3 (1)
      • 클라우드 (0)
      • Data Engineering (37)
        • GitHub (10)
        • NiFi (11)
        • Spark (10)
        • Snowflake (0)
        • 머신러닝, AI (6)
      • 언어 (118)
        • 데이터 베이스 (42)
        • JAVA (9)
        • Python (34)
        • Java Script (15)
        • Linux (18)
      • 프로젝트, 인강 그리고 책 (30)
        • Spotify Project (7)
        • RASA chatbot Project (9)
        • Naver shopping Project (6)
        • 빅데이터를 지탱하는 기술 (8)
      • OLD (56)
        • IT 용어 사전 (13)
        • Front End (12)
        • Back End (31)
      • Error code 모음 (165)
        • 1. SQL errors (17)
        • 2. Hadoop errors (20)
        • 3. Linux Errors (14)
        • 4. Python errors (33)
        • 5. JAVA, Spring errors (41)
        • 6. Jav Script errors (10)
        • 7. Dev Tools errors (9)
        • 8. Git errors (8)
        • 9. Jenkins Errors (4)
        • 10. airflow Errors (2)
        • 11. Aws errors (7)
      • 개인 (1)
        • 책 (1)
  • 블로그 메뉴

    • 홈
    • 태그
    • 방명록
    • 블로그 관리
    • 글쓰기
  • 링크

  • 공지사항

    • 간단한 블로그 소개
  • 인기 글

  • 태그

    install
    Git
    파이썬
    NiFi
    Spring
    에러
    AWS
    자바
    리눅스
    MySQL
    python error
    linux
    node
    error
    java
    SQL
    json
    설치
    API
    Python
  • 최근 댓글

  • 최근 글

  • hELLO· Designed By정상우.v4.10.3
쟈누
[mysql] error : java.sql.SQLException: Unknown initial character set index '255' received from server. Initial client character set can be forced via the 'characterEncoding' property.
상단으로

티스토리툴바