분류 전체보기 53

MySQL mysql Index column size too large the maximum column size is 767 bytes.

상황 mysql Index column size too large the maximum column size is 767 bytes. 와 같은 에러 메시지가 나온다. 인덱스 사이즈가 너무 커서 발생하는 문제이다. 해결방안 MySQL my.cnf 파일 찾기를 참고하여 my.cnf파일을 찾는다. my.cnf 파일의 내용을 다음과 같이 수정한다. [mysqld] ... innodb_file_format=barracuda innodb_large_prefix=on innodb_file_per_table=on ... 추후 테이블을 생성시 ROW_FORMAT=DYNAMIC 를 추가한다. CREATE TABLE `task_fail` ( `id` int(11) NOT NULL AUTO_INCREMENT, `task_id..

기타 2020.06.03

MySQL my.cnf 파일찾기

상황 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 등 에디터를 이용하여 확인한다.

기타 2020.06.03
반응형