Database/MySQL

우분투 MySQL 한글설정

xProgrammer 2018. 6. 5. 01:29

sudo vi /etc/mysql/my.cnf

[client]
default-character-set = utf8

[mysqld]
init_connect = SET collation_connection = utf8_general_ci
init_connect = SET NAMES utf8
character-set-server = utf8
collation-server = utf8_general_ci

[mysqldump]
default-character-set = utf8

[mysql]
default-character-set = utf8