공부/데이터베이스

[데이터베이스] MySQL 한글 설정

ghhong 2022. 1. 19. 09:56

1. MySQL 한글 설정

  • my.ini 파일
  • MySQL 재시작
[client]
default-character-set=utf8

[mysql]
default-character-set=utf8

[mysqld]
collation-server = utf8_unicode_ci
init-connect='SET NAMES utf8'
init_connect='SET collation_connection = utf8_general_ci'
character-set-server=utf8

 

2. 한글 설정 확인

show variables like 'c%';
show variables like 'c%';