[MySQL] utf-8 설정 (incorrect string value...)
EUNJIHA opened this issue · comments
Grace commented
- my.cnf 파일 설정 변경
$ whereis my.cnf
$ sudo vi /usr/local/mysql/my.cnf
[mysqld]
...
default-character-set=utf8
default-collation=utf8_general_ci
...
- database, table character set 설정
mysql> ALTER TABLE table_name convert to charset utf8;
출처: https://postitforhooney.tistory.com/entry/DBMariaDBMysql-Mysql-언어설정으로-인한-문제-그리고-해결 [PostIT]