이전
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
에서 확인가능 하며 우선순위는 아래와 같음
- /etc/my.cnf
- /etc/mysql/my.cnf
- /usr/etc/my.cnf
- ~/.my.cnf