본문 바로가기
STUDY/LINUX

CENTOS MARIA DB 한글깨짐

by NOTEEE 2018. 7. 9.

CentOS에서 Maria DB 한글깨짐이 발생하였다.


그리하여 문자셋을 utf-8로 변경하는 작업을 하였다.



아래의 경로로 들어간 후

[root@localhost /]# vim /etc/my.cnf




[mysqld] 아래에 수정을 해주면 된다.

#
# This group is read both both by the client and the server
# use it for options that affect everything
#
[client-server]
 
#
# include all files from the config directory
#
!includedir /etc/my.cnf.d
 
[mysqld]
lower_case_table_names=1
collation-server=utf8_unicode_ci
character-set-server=utf8
 
cs


Maria DB 재시작 후 설정값이 적용되는 것을 확인할 수 있다.

[root@localhost /]# /etc/init.d/mysql start
cs

끝.

'STUDY > LINUX' 카테고리의 다른 글

TOMCAT MULTI INSTANCE  (0) 2018.08.04
JENKINS DEPLOY ERROR  (0) 2018.07.25
TIME ZONE 변경  (0) 2018.05.02
OPENSTREET TILE SERVER 설치  (0) 2018.04.17
ELASTICSEARCH 설치  (0) 2018.02.21