티스토리 뷰
my.ini
default-character-set=utf8
init_connect=SET collation_connection= utf8_general_ci
init_connect=SET NAMES utf8
character-set-server=utf8
collation-server=utf8_general_ci
추가..
my.cnf 파일 안에 [mysqld] 부분에 아래 내용 추가 후 MySQL 서버 restart 하시면 됩니다.
default-character-set=utf8
default-collation=utf8_general_ci
init_connect=set collation_connection=utf8_general_ci
init_connect=set names utf8
character-set-server=utf8
collation-server=utf8_general_ci
character-set-client-handshake = TRUE
default-collation=utf8_general_ci
init_connect=set collation_connection=utf8_general_ci
init_connect=set names utf8
character-set-server=utf8
collation-server=utf8_general_ci
character-set-client-handshake = TRUE
MySQL client 에서 셋팅을 확인하기 위해 다음 명령어를 이용하시면 됩니다.
show variables like 'char%'
+--------------------------+----------------------------+
| Variable_name | Value |
+--------------------------+----------------------------+
| character_set_client | utf8 |
| character_set_connection | utf8 |
| character_set_database | utf8 |
| character_set_filesystem | binary |
| character_set_results | utf8 |
| character_set_server | utf8 |
| character_set_system | utf8 |
| character_sets_dir | /usr/share/mysql/charsets/ |
+--------------------------+----------------------------+
8 rows in set (0.00 sec)
| Variable_name | Value |
+--------------------------+----------------------------+
| character_set_client | utf8 |
| character_set_connection | utf8 |
| character_set_database | utf8 |
| character_set_filesystem | binary |
| character_set_results | utf8 |
| character_set_server | utf8 |
| character_set_system | utf8 |
| character_sets_dir | /usr/share/mysql/charsets/ |
+--------------------------+----------------------------+
8 rows in set (0.00 sec)
'웹개발 > DataBase' 카테고리의 다른 글
INDEX 제대로 사용하기 (0) | 2011.07.17 |
---|---|
오라클 페이징 처리 하기 (0) | 2011.07.17 |
Oralce 기본 사용 명령어 (0) | 2011.07.16 |
Mysql 자료 (0) | 2011.06.07 |
RedHat Enterprise 4 as 사이베이스 ASE-12.5.2 (평가판) 설치후기 (0) | 2008.02.12 |
댓글