SET character_set_client = utf8;
SET character_set_results = utf8;
SET character_set_connection = utf8;
ALTER DATABASE DB명 DEFAULT CHARACTER SET utf8;
commit;
commit 명령어는 하위 테이블에 적용하는 명령어
[mysql]
default-character-set=utf8
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
user=mysql
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
old_passwords=1
[client]
default-character-set=utf8
[mysqldump]
default-character-set=utf8
my.cnf 수정후 재시작