Skip to main content

mysql utf8설정

mysql에 utf8로 강제 설정

$> cat /etc/my.cnf
...
[client]
default-character-set = utf8

...
[mysqld]
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

...
[mysqldump]
default-character-set = utf8

...