더북(TheBook)

15. vi 에디터를 이용해 50-client.cnf 파일을 열어 default-character-set을 utf8로 변경합니다.

root@controller:/etc/mysql/mariadb.conf.d# vi 50-client.cnf
#

This group is read by the client library

Use it for options that affect all clients, but not the server

#

[client]

Default is Latin1, if you need UTF-8 set this (also in server section)

default-character-set = utf8

This group is never read by mysql client library, though this

/etc/mysql/mariadb.cnf.d/client.cnf file is not read by Oracle MySQL

client anyway.

If you use the same .cnf file for MySQL and MariaDB,

use it for MariaDB-only client options

[client-mariadb]

신간 소식 구독하기
뉴스레터에 가입하시고 이메일로 신간 소식을 받아 보세요.