Skip to content

조회 수 12603 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄

이 문제에 관련하여 여러가지 경우(접속시간이 지나치게 길어서 접속이 끊어졌거나, 접속이 끊어졌는데 쿼리를 날리려고 하는 등...)가 있겠지만 내가 설명하는 경우는 날리려는 쿼리가 지나치게 클 때 해결할 수 있는 방법이다.

 

이는 다른 문제가 아니라 max_allowed_packet 값이 너무 작아서이다.

클라이언트의 경우 기본 max_allowed_packet의 값은 16M인데

서버의 경우 기본 max_allowed_packet의 값은 1M밖에 되지 않는다.

 

그래서 쿼리를 날릴 때에는 문제가 없었는데 서버에 insert나 update시에 문제가 발생하는 것이다.

이 값을 고쳐주기 위해서는.

 

set GLOBAL max_allowed_packet = 1024 * 1024 * 64;
set SESSION max_allowed_packet = 1024 * 1024 * 64;


이런 쿼리를 서버에 날려주자.

제한 용량이 64M로 바뀌면서 아무런 문제없이 쿼리를 읽어들이는 서버의 모습을 보게 될 것이다.ㅎ


  1. mysql old_password 문제

    Date2010.06.19 ByADMINPLAY Views18457
    Read More
  2. MySQL 오류 테이블 복원

    Date2010.05.29 Byl2zeo Views17272
    Read More
  3. MySQL errno 의미 확인

    Date2010.05.29 Byl2zeo Views16596
    Read More
  4. [MySQL] OPTIMIZE, TRUNCATE, 테이블복구, DB공간제한

    Date2010.05.29 Byl2zeo Views16494
    Read More
  5. latin1 로 저장된 db 를 euckr 또는 utf8로 변환하는 방법

    Date2010.05.28 ByADMINPLAY Views16546
    Read More
  6. 서버에서 mysql euckr과 utf8 같이 사용하기

    Date2010.05.03 ByADMINPLAY Views12803
    Read More
  7. mySQL 설치

    Date2010.05.03 ByADMINPLAY Views12906
    Read More
  8. lower_case_table_names=1

    Date2010.04.02 ByADMINPLAY Views18089
    Read More
  9. MySQL 명령어 정리

    Date2010.03.08 Byl2zeo Views10215
    Read More
  10. Another app is currently holding the yum lock; waiting for it to exit 해결법

    Date2010.03.08 Byl2zeo Views18288
    Read More
  11. PHP5와 MySQL5 연동시 한글 인코딩 문제 해결방법 (UTF-8으로의 변환)

    Date2010.03.08 Byl2zeo Views12585
    Read More
  12. MySQL Error 2006 : MySQL server has gone away 해결하기

    Date2010.03.08 Byl2zeo Views12603
    Read More
  13. Redmine database를 복구 하고자 할 때

    Date2010.03.06 Byl2zeo Views15601
    Read More
  14. Starting MySQL.Manager of pid-file quit without updating fi[실패]

    Date2010.01.28 ByADMINPLAY Views19871
    Read More
  15. MySQL 데이터 정리후에도 용량변동이 없을 경우

    Date2009.12.31 ByADMINPLAY Views8664
    Read More
  16. Mysql bin log 로테이션 방법

    Date2009.11.26 ByADMINPLAY Views9561
    Read More
  17. 리눅스를 이용한 클러스터링 구축법

    Date2009.11.19 ByADMINPLAY Views10758
    Read More
  18. MySQL Replication(복제)

    Date2009.11.19 ByADMINPLAY Views7795
    Read More
  19. MySQL Replication

    Date2009.11.19 ByADMINPLAY Views8094
    Read More
  20. Mysql Replication(Master, Slave) 설정

    Date2009.11.19 ByADMINPLAY Views9735
    Read More
Board Pagination Prev 1 2 3 4 5 Next
/ 5

Copyright ADMINPLAY corp. All rights reserved.

abcXYZ, 세종대왕,1234

abcXYZ, 세종대왕,1234