메뉴 건너뛰기

Korea Oracle User Group

DBMS

MySQL Windows 버전 MySQL의 my.ini 파일 찾기

명품관 2020.03.01 18:36 조회 수 : 13241

Windows 버전 MySQL의 my.ini 파일 찾기

 

윈도우의 경우 리눅스의 my.conf 파일과 다르게 환경 설정 파일명이 my.ini 명칭으로 존재한다.

 

my.ini 파일을 찾는 가장 빠른 방법은 services.msc 명령어를 통해 서비스의 내용을 확인하는 것이다.

윈도우의 경우 대개 setup 형태로 MySQL을 설치하기 때문에 기본적으로 서비스에 등록을 시키는 형태로 설치하게 된다.

MySQL이 서비스에 등록되어 있다면 아래와 같이 등록이 되어 있을 것이다.

 

[크기변환]20200301_182356.png

 

등록된 서비스의 속성을 보게 되면 

 

[크기변환]20200301_182447.png

 

아래 창과 같은 정보가 담겨 있게 된다.

 

[크기변환]20200301_182501.png

 

위의 정보를 보면 실행 파일 경로 부분에 아래와 같은 명령어가 실행된 것을 확인할 수 있다.

 

"C:\Program Files\MySQL\MySQL Server 8.0\bin\mysqld.exe" --defaults-file="C:\ProgramData\MySQL\MySQL Server 8.0\my.ini" MySQL80

 

위의 내용에서 my.ini 파일의 위치 정보를 확인할 수 있다.

 

위의 내용과는 별도로 MySQL의 경우 윈도우에서 환경 파일을 찾은 순서는 아래와 같다.

 

MySQL이 윈도우에서 환경 파일을 찾는 순서
순서 파일 위치
1 %WINDIR%\my.ini, %WINDIR%\my.cnf
2 C:\my.ini, C:\my.cnf
3 BASEDIR\my.ini, BASEDIR\my.cnf
4 mysqld 수행시 --defaults-file 옵션에 정한 내용

 

 

번호 제목 글쓴이 날짜 조회 수
19 PostgreSQL 16 설치하기(Installation) [1] 명품관 2024.01.24 353
18 Top-Rated PostgreSQL GUI Clients for Windows 명품관 2023.05.10 87
17 기동시 "Job for mysqld.service failed because the control process exited with error code." 에러로 기동 실패 명품관 2020.09.03 7882
16 MySQL 8.0 Reference Manual - MySQL Server Administration2 - Server Configuration Validation 명품관 2020.04.17 416
15 MySQL 8.0 Reference Manual - MySQL Server Administration1 - Configuring the Server 명품관 2020.03.05 9596
14 MySQL 8.0 Reference Manual - Tutorial - Creating and Using a Database4 명품관 2020.03.03 252
13 MySQL 8.0 Reference Manual - Tutorial - Creating and Using a Database3 명품관 2020.03.02 411
» Windows 버전 MySQL의 my.ini 파일 찾기 file 명품관 2020.03.01 13241
11 MySQL 8.0 Reference Manual - Tutorial - Creating and Using a Database2 명품관 2020.02.29 232
10 MySQL 8.0 Reference Manual - Tutorial - Creating and Using a Database1 명품관 2020.02.28 188
9 MySQL 8.0 Reference Manual - Tutorial - Entering Queries 명품관 2020.02.28 199
8 MySQL 8.0 Reference Manual - Tutorial - Connecting to and Disconnecting from the Server 명품관 2020.02.27 190
7 MySQL Admin - 01 명품관 2019.10.08 702
6 How to Install MariaDB 10 on RHEL 8 [2] 명품관 2019.01.31 252
5 MySQL 설치 후 외부 접속 허용하기 명품관 2016.09.09 2842
4 CentOS 6.7 에서 MySQL 5.7 설치 명품관 2016.09.09 13788
3 티베로 trace log 중 ERROR_PSM_COMPILE_FAILED 에러란 명품관 2016.09.06 11410
2 DP, DPL, DPI에 관한trace log 내용 분석 명품관 2016.09.06 1028
1 티베로 에러 내용 확인 방법 명품관 2016.08.26 10731
위로