참고 ) kinox블로그
환경
OS : Ubuntu 7.04 Server
Mysql : 5.0.x
설정
1. "/etc/mysql/my.cnf" 에서 다음 부분을 수정한다.
[mysql]
default-character-set = utf8[mysqld]
character-set-client-handshake=FALSE
init_connect="SET collation_connection = utf8_general_ci"
init_connect="SET NAMES utf8"
default-character-set = utf8
character-set-server = utf8
collation-server = utf8_general_ci[client]
default-character-set = utf8[mysqldump]
default-character-set = utf8
2. DB 생성
mysql> create DATABASE <dbname> DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;