본문 바로가기
IT

he size of BLOB/TEXT data inserted in one transaction is greater than 10% of redo log size. Increase the redo log size using innodb_log_file_size

by 이농이능 2018. 4. 20.

session에 사이즈가 큰 값을 저장하려다보니, 


he size of BLOB/TEXT data inserted in one transaction is greater than 10% of redo log size. Increase the redo log size using innodb_log_file_size

이런 오류가 발생하였다.


한 트랜잭션에 삽입 된 BLOB / TEXT 데이터의 크기가 리두 로그 크기의 10 %보다 큽니다. innodb_log_file_size를 사용하여 리두 로그 크기를 늘리십시오. 라는 내용인데,


innodb_lob_file_size는  transaction 의 redo log 를 저장하는 로그 파일의 사이즈를 의미한다.



늘려주는 방법:


1. mysql 종료

service mysqld stop


2. /etc/my.cnf 수정


my.cnf에 [mysqld] 가 없으면 [client] 위쪽에다가 작성한다.


[mysqld]

innodb_log_file_size=512M

max_allowed_packet = 512M


max_allowed_packet 과 innodb_log_file_size 모두 늘려주어야함. 


3. 기존 redo log 파일 삭제하거나 이동

mv /var/lib/mysql/ib_logfile* ~/


4. mysql 재시작

service mysqld start




출처 : https://www.lesstif.com/pages/viewpage.action?pageId=30703620

'IT' 카테고리의 다른 글

HTTP 상태코드 정리  (0) 2018.06.15
Git 버전관리  (0) 2018.06.01
_mysql_exceptions.OperationalError: (2006, 'MySQL server has gone away')  (0) 2018.04.17
[2018_03_27] 찾아본 것  (0) 2018.03.27
json  (0) 2018.03.21