2.MySQL 서버 설정 파일
1. 설정 파일
MySQL 서버가 시작될 때 참조하는 파일 주로 서버의 기동과 관련된 옵션, 초기화 설정 등이 작성되어 있음
설정 파일을 어느 디렉토리에서 읽는지 확인
terminal
mysql --help
# 실행 결과
# ~ Default options are read from the following files in the given order:
# C:\WINDOWS\my.ini C:\WINDOWS\my.cnf C:\my.ini C:\my.cnf C:\Program Files\MySQL\MySQL Server 8.0\my.ini C:\Program Files\MySQL\MySQL Server 8.0\my.cnf2. 운영체제별 설정 파일 이름
OS 운영체제별로 MySQL 설정 파일 이름이 다름
my.cnf - Unix, Linux
my.ini - Windows
💡
Tip
cnf - configuration file
ini - installation instructions
ini파일을 열어서 MySQL서버의 포트 확인
Last updated on