사이트 내 전체검색
PHP
[MySQL] max_allowed_packet 발생시 대처법
로빈아빠
https://cmd.kr/php/697 URL이 복사되었습니다.

본문

MySQL Migration Toolkit을 이용하여 MS Access에 있는 데이터를 옮기던 중에 다음과 같은 오류가 발생하였습니다.

 

2. Data Bulk Transfer
---------------------

      `test`.`TEST_CONTENTS`
      -------------------------
          Packet for query is too large (1720261 > 1048576). You can change this value on the server by setting the max_allowed_packet' variable.
          Packet for query is too large (1296932 > 1048576). You can change this value on the server by setting the max_allowed_packet' variable.
          0 row(s) transfered.

이 문제를 해결하기 위해서는 해당 설정 값을 더 크게 변경해 주어야 합니다.

변경 방법은 아래와 같습니다.

 
show variables;
SET GLOBAL max_allowed_packet = 1024 * 1024 * 32;
SET SESSION max_allowed_packet = 1024 * 1024 * 32;


<< 참조사이트 >>
http://blog.naver.com/hbesthee?Redirect=Log&logNo=20035879450

댓글목록

등록된 댓글이 없습니다.

PHP
871 (6/18P)

Search

Copyright © Cmd 명령어 3.135.194.251