EUNJIHA / Dev-Tips

👩🏻‍💻Develop 중에 해결한 문제들 issue 작성

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[MySQL] utf-8 설정 (incorrect string value...)

EUNJIHA opened this issue · comments

commented
  1. my.cnf 파일 설정 변경

$ whereis my.cnf

$ sudo vi /usr/local/mysql/my.cnf

[mysqld]

...

default-character-set=utf8

default-collation=utf8_general_ci

...

  1. database, table character set 설정

mysql> ALTER TABLE table_name convert to charset utf8;

출처: https://postitforhooney.tistory.com/entry/DBMariaDBMysql-Mysql-언어설정으로-인한-문제-그리고-해결 [PostIT]