server default charset은 euckr이고, table 생성시 charset을 utf8로 생성한 경우,
table에 utf8형태로 table에 data를 정상적으로 넣으려면,
client에서 server로 접속시 아래의 변수들을 고려해야한다.
- SET NAMES 'charset_name' [COLLATE 'collation_name']
=> 아래의 3개 변수 수정과 동일
SET character_set_client = x;
SET character_set_results = x;
SET character_set_connection = x;
- SET CHARACTER SET charset_name
=> 아래의 3개 변수 수정과 동일
SET character_set_client = x;
SET character_set_results = x;
SET collation_connection = @@collation_database;
[ reference ]
http://dev.mysql.com/doc/refman/5.0/en/charset-connection.html
http://dev.mysql.com/doc/refman/5.0/en/server-system-variables.html