Skip to content

mysql 한글 깨짐 문제 my.ini 수정으로 해결 #4

@yooonmyong

Description

@yooonmyong

혹시모르니 원본 my.ini 파일 자체를 다른 곳에 복사해두기!

my.ini 메모장으로 열어서

  1. [client] 부분에
    default-character-set=utf8 추가

  2. [mysql] 부분에
    default-character-set=utf8 추가
    bind-address=127.0.0.1 추가

  3. [mysqld] 부분에
    collation-server=utf8_general_ci
    character-set-server=utf8
    init_connect=SET collation_connection=utf8_general_ci
    init_connect=SET NAMES utf8
    skip-character-set-client-handshake 추가

  4. Path to installation directory. All paths are usually resolved relative to this.

basedir="C:/Program Files/MySQL/MySQL Server 8.0/"
---> basedir 이 부분 주석처리 돼있을텐데 풀어주기!

  1. 원본 my.ini에는 없는
    [mysqldump]
    default-character-set=utf8
    통째로 추가

  2. 검색>서비스 쳐서 MYSQL 서비스 재시작
    (+) MYSQL 안 될 경우 my.ini를 메모장으로 연 뒤 다른이름으로저장>인코딩을 기본설정돼있는 UTF-8이 아닌 ANSI로 바꾼 뒤 저장학고나서 서비스 재시작

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions