DataBase/MySQL

[MySQL] my.cnf 위치 확인

효락 2017. 11. 21. 12:51

MySQL 설정 파일인 my.cnf 의 위치 확인은 다음과 같은 명령어로 확인이 가능하다.

# mysqld --verbose --help | grep -A 1 'Default options'

또는

 # mysqladmin -help

명령어를 실행하면 my.cnf 경로가 표시된다.

...
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
...