이전

Mysql 설정파일 위치

MySQL 서버는 단 하나의 설정 파일을 사용한다. 리눅스를 포함한 유닉스 계열은 my.cnf 윈도우 계열에서는 my.ini라는 이름을 사용

mysql --verbose --help

Default options are read from the following files in the given order:
/etc/my.cnf /etc/mysql/my.cnf /usr/etc/my.cnf ~/.my.cnf

에서 확인가능 하며 우선순위는 아래와 같음

  1. /etc/my.cnf
  2. /etc/mysql/my.cnf
  3. /usr/etc/my.cnf
  4. ~/.my.cnf