티스토리 뷰

728x90
반응형

오류 내용을 보면 환경설정 파일이 사라졌다는 의미이므로, 이 파일들을 생성 및 작성하면 됩니다.

  1. my.cnf 파일 생성
    /usr/local/etc/ 경로에 my.cnf라는 파일을 생성한 뒤, 다음과 같이 작성합니다.
# 
# 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 /usr/local/etc/my.cnf.d
Bash


  1. my.cnf.d 폴더 생성 후 mariadb.cnf 파일 생성 및 작성
    /usr/local/etc/ 경로에 my.cnf.d 폴더를 생성하고, mariadb.cnf이라는 파일을 생성한 뒤, 다음과 같이 작성합니다.
# MariaDB-specific config file.

# Read by /etc/mysql/my.cnf 

[client] 
# Default is Latin1, if you need UTF-8 set this (also in server section)
#default-character-set = utf8 

[mysqld] 
# 
# * Character sets # # Default is Latin1, if you need UTF-8 set all this (also in client section) 
# 
#character-set-server = utf8 
#collation-server = utf8_general_ci 
#character_set_server = utf8 
#collation_server = utf8_general_c
#
# 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 /usr/local/etc/my.cnf.d
Bash


  1. mysqld_safe_syslog.cnf 파일 생성 및 작성
    /usr/local/etc/my.cnf.d 경로에 mysqld_safe_syslog.cnf 파일을 생성한 뒤, 다음과 같이 작성합니다.
[mysqld_safe]
syslog
Bash


  1. tokudb.cnf 파일 생성 및 작성
    /usr/local/etc/my.cnf.d 경로에 tokudb.cnf 파일을 생성한 뒤, 다음과 같이 작성합니다.
[mariadb] # See https://mariadb.com/kb/en/how-to-enable-tokudb-in-mariadb/
# for instructions how to enable TokuDB
#
# See https://mariadb.com/kb/en/tokudb-differences/ for differences
# between TokuDB in MariaDB and TokuDB from http://www.tokutek.com/
Bash


여기까지 작성을 하게 되면, mysql.server start 명령어가 정상적으로 작동됩니다.

728x90
반응형
댓글
반응형
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
more
«   2024/05   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
글 보관함