Skip to content
조회 수 22924 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

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

단축키

Prev이전 문서

Next다음 문서

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

많은 DB 요청시 자동으로 막히는 현상 해제


에러가 발생했을 경우

Host 'hostname' is blocked because of many connection errors.
Unblock with 'mysqladmin flush-hosts'

이것은 ,mysqld 이 'hostname' 호스트로부터 많은 접속 에러(max_connect_errors) 를 받았을 경우에 발생합니. 


max_connect_errors 대량 발생 후 ,mysqld 는 무엇인가 

문제(크래커로부터의 공격등 ) 가 발생했다고 판단해 , 

이 호스트로부터의 접속을 거부하도록(듯이) 합니다. 

이것을 해제하는데는 ,mysqladmin flush-hosts 커멘드를 실행합니다.


디폴트에서는 , 접속 에러가 10 회 발생하면(자) ,mysqld 는 그 호스트를 

거부합니다. 이 값은 , 이하와 같이 서버를 개시하는 것으로 간단하게 

변경할 수 있습니다.

shell> mysqld_safe -O max_connect_errors=10000 &

특정의 호스트에 대해서 이 에러 메세지가 발생하는 경우는 , 우선 , 

그 호스트로부터의 TCP/IP 접속에 문제가 없는가 확인해 주세요. 

TCP/IP 접속이 기능하고 있지 않는 경우는 ,max_connect_errors 

변수의 값을 늘려도 효과는 없습니다.



출처 : http://coffeenix.net/board_print.php?bd_code=383

쉘(도스쉘, 리눅스쉘)모드에서는 

shell> mysqld_safe --max_connect_errors=10000 &



출처 : http://www.jaehun.org/8

mysqladmin variables -p
Enter password: 

접속을 하게되면
+---------------------------------+
| Variable_name | Value 
+---------------------------------+--------------------------------------------+
| back_log | 50 | basedir | / | binlog_cache_size | 32768 | bulk_insert_buffer_size | 
| 8388608 | character_set | euc_kr 등등

여러 값이 나타납니다.

이 부분에서 | max_connect_errors 값을 수백만.. 수천만으로 수정해주시면 되겠습니다.

###########
수정방법.
###########

/etc/my.cnf 파일에 들어가시면 상단부분에
============================수정해야 할 부분==============
set-variable = safe_show_database=ON
set-variable = key_buffer=128M
set-variable = max_allowed_packet=1M
set-variable = table_cache=256
set-variable = sort_buffer=2M
set-variable = record_buffer=2M
set-variable = myisam_sort_buffer_size=64M
set-variable = thread_cache=8
set-variable = max_connect_errors=1845829 <===이곳에 추가를 하였습니다.
# Try number of CPU's*2 for thread_concurrency
set-variable = thread_concurrency=8
#log-bin
server-id = 1
=========================================================
이부분에 추가를 해주시면 max_connect_errors 값이 수정됩니다.



로그인 후 댓글쓰기가 가능합니다.

?

List of Articles
번호 분류 제목 날짜 조회 수
77 AutoHotKey autohotkey)매월 1일의 요일 구하기 1 2013.01.27 15265
76 AutoHotKey autohotkey) 화면보호기, 바탕화면 control 창 열기 3 2012.03.17 8364
75 AutoHotKey Autohotkey) 화면보호기(ScreenSaver) On/Off 방법 17 2012.03.16 40676
74 AutoHotKey autohotkey) 화면보호기 실행 전 클릭으로 화면보호 안걸리게 하기 2012.03.15 8869
73 AutoHotKey autohotkey) 핑테스트 프로그램 1 file 2011.12.31 18951
72 AutoHotKey autohotkey) 편입 변수 4 2012.03.13 28888
71 AutoHotKey autohotkey) 파일리스트 가져오기 3 2012.11.26 14986
70 AutoHotKey autohotkey) 윈도우 ahk_id 추출하기 2 2012.03.06 30088
69 AutoHotKey autohotkey) 웹페이지의 프레임 내용보기 & 클릭하기 2011.11.29 15147
68 AutoHotKey autohotkey) 오토핫키에서 자주쓰는 함수모음 2013.10.30 33700
67 AutoHotKey autohotkey) 스크린세이버 활성화 / 비활성화 시키기. 2012.03.17 8035
66 AutoHotKey autohotkey) 맥어드레스 추출 2 2011.12.21 15082
65 AutoHotKey autohotkey) 런처시스템 3 2012.05.30 14286
64 AutoHotKey autohotkey) 네 코드를 보여, 내가 당신에게서 배우고 싶어요 1 2012.01.08 15114
63 AutoHotKey autohotkey) WinSpector spy를 이용한 post,sendmessage Control ID 추출하기 3 file 2012.02.22 10901
62 AutoHotKey autohotkey) Virus? 6 2011.12.31 34679
61 AutoHotKey autohotkey) postmessage mouse control 13 2012.02.22 28630
60 AutoHotKey autohotkey) Mutex에 대해서 1 4 2011.12.31 24121
59 AutoHotKey autohotkey) IPv6 모두 사용안함 설정하기 1 file 2011.12.30 19133
58 AutoHotKey Autohotkey) Find WM_COMMAND parameter with Winspector 17 2012.02.22 35871
Board Pagination Prev 1 ... 41 42 43 44 45 46 Next
/ 46

http://urin79.com

우린친구블로그

sketchbook5, 스케치북5

sketchbook5, 스케치북5

나눔글꼴 설치 안내


이 PC에는 나눔글꼴이 설치되어 있지 않습니다.

이 사이트를 나눔글꼴로 보기 위해서는
나눔글꼴을 설치해야 합니다.

설치 취소