상황
- mysql의 설정을 바꾸기 위해 my.cnf 파일을 찾아야 하나 설치 방법에 따라 위치가 달라 찾기가 어렵다.
해결방안
mysql 설치 서버에서 다음과 같이 입력한다.
$ mysqld --verbose --help | grep -A 1 'Default options'
이 경우 다음과 같은 결과가 나온다.
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
이들을 차례로 vim 등 에디터를 이용하여 확인한다.
반응형
'데이터베이스 > Mysql' 카테고리의 다른 글
MySQL database character set 변경 (0) | 2020.06.03 |
---|---|
MySQL mysql Index column size too large the maximum column size is 767 bytes. (0) | 2020.06.03 |
MySQL port번호 확인 (0) | 2020.06.03 |
댓글