본문 바로가기

공부/데이터베이스

mysql>ERROR 1366 (HY000): Incorrect string value: '\xB0\xFC\xB8\xAE' for column 'name' at row 1 에러 해결법

반응형

mysql>ERROR 1366 (HY000): Incorrect string value: '\xB0\xFC\xB8\xAE' for column 'name' at row 1

에러 해결방법

 

1. utf-8로 세팅을 하면은 기존의 값을 불러올 때는 깨지지 않는데 데이터를 입력할 때는 깨진다.
한글을 euckr 로 변환해야 안깨진다.


해결책
mysql> set character set euckr;
Query OK, 0 rows affected (0.00 sec)

 

2. db 명령어 창은 아래와 같이 2가지

MySQL 5.6 Command Line Client - Unicode

MySQL 5.6 Command Line Client

 

MySQL 5.6 Command Line Client를 선택해서 사용해야 함

반응형