Database
2017.03.30 01:18
[mysql] 쿼리 실행시 ERROR 1366 (HY000) : incorrect string value : for column
Views 8983 Comment 3
MySQL 쿼리에 한글이 포함됐을 때 이런 오류가 나는 경우가 있다.
# 오류 내용
mysql> ERROR 1366 (HY000): Incorrect string value: '\xEB\xB2\x88 \xED\x94...' for column 'memo' at row 1
# 해결 방법
1. /etc/my.cnf 파일을 수정 (다음 내용을 추가)
[mysqld]
. . .
default-character-set=utf8
default-collation=utf8_general_ci
. . .
2. database, table character set 수정
mysql> ALTER TABLE table_name convert to charset utf8;
-
[ios] Facebook Cache 갱신하는 함수
-
[ios] 동영상 플레이어 샘플 (for PIP Player)
-
Mac OS 에 Jenkins 설치하기 (Homebrew)
-
[ios] Xcode에서 특정 파일만 ARC 따로 설정하는 방법
-
[mysql] 쿼리 실행시 ERROR 1366 (HY000) : incorrect string value : for column
-
[ios] NSString, RegularExpression Find/Replace
-
[ios] Facebook SDK 로그인 설명
-
[linux] 초간단 Postfix, Covecot, SSL/TLS (SMTP)
-
[mysql] ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement.
-
[ios] Requesting Location Permissions in iOS
-
서버 확장을 위한 두 가지 방법
-
맥에서 포트 확인하고 닫기 (mac)