Skip to content

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

단축키

Prev이전 문서

Next다음 문서

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

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
MySQL Server가 동작중인지 원격에서 검사할 때 유의할 점이다.
원격 서버의 MySQL 3306 포트가 살아있는지 검사할 때 단순히 커넥션을 한 후 close하게 되면 MySQL은 비정상적인 접속으로 판단하여 해당 IP를 블럭킹할 수 있다.

 
# telnet 192.168.1.2 3306
Trying 192.168.1.2...
Connected to 192.168.1.2.
Escape character is '^]'.
}너무 많은 연결오류로 인하여 호스트 '192.168.1.1'는 블락되었습니다. 'mysqladmin flush-hosts'를 이용하여 블락을 해제하세요
Connection closed by foreign host.
 


MySQL은 비정상적인 접속에 대한 요청수를 카운트를 하는데 max_connect_errors 변수에서 지정한 값을 넘으면 블럭킹을 한다. 기본 값은 10이며, 정기적인 포트 점검이 필요한 경우 이 수를 높여라.

다음은 MySQL Manual에 나온 글이다.

 
A.2.5 Host 'host_name' is blocked

If you get the following error, it means that mysqld has received many connect requests from the
host 'host_name' that have been interrupted in the middle:

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

The number of interrupted connect requests allowed is determined by the value of the
max_connect_errors system variable. After max_connect_errors failed requests, mysqld assumes that
something is wrong (for example, that someone is trying to break in), and blocks the host from
further connections until you execute a mysqladmin flush-hosts command or issue a FLUSH HOSTS
statement. See section 5.2.3 Server System Variables.

By default, mysqld blocks a host after 10 connection errors. You can adjust the value by starting
the server like this:

shell> mysqld_safe --max_connect_errors=10000 &

If you get this error message for a given host, you should first verify that there isn't anything
wrong with TCP/IP connections from that host. If you are having network problems, it will do you no
good to increase the value of the max_connect_errors variable.
 


* 참고
  A.2.5 Host 'host_name' is blocked
  
http://dev.mysql.com/doc/mysql/en/Blocked_host.html

  5.2.3 Server System Variables
  
http://dev.mysql.com/doc/mysql/en/Server_system_variables.html

List of Articles
번호 제목 글쓴이 날짜 조회 수
86 mysql 설치 시 LinuxThreads 에러 ADMINPLAY 2008.10.30 6629
85 mysql 초간단 설치 ADMINPLAY 2009.10.15 6707
84 mysql 자세한 복구 방법 #1 ADMINPLAY 2008.11.11 6752
83 mysqladmin 사용하기 DB연결수 및 세부정보 알아내기 ADMINPLAY 2009.06.25 6843
82 mysql 버전 3.23.58 (4.0.X)설치 가 안되서 그러는데 ADMINPLAY 2009.07.14 6890
81 mysql 자주쓰는 명령어 정리 ADMINPLAY 2008.10.30 7168
80 mysql root에 아무권한이 없어 작업이 불가능한 경우 ADMINPLAY 2008.11.11 7186
79 MySQL 4.1 이상에서 한글 사용 ADMINPLAY 2009.09.28 7291
78 mysql 자세한 복구 방법 #2 ADMINPLAY 2008.11.11 7385
77 MySQL 테이블 복구하기 (쉴 프롬프트에서..) ADMINPLAY 2008.11.11 7456
76 MySQL 데이터베이스의 생성과 삭제 ADMINPLAY 2008.10.30 7667
75 mysql 테이블이 손상된 경우 myisamchk ADMINPLAY 2008.10.30 7669
74 MySQL Replication(복제) ADMINPLAY 2009.11.19 7792
73 Mysql 버전별 케릭터셋 지원여부 (euckr / utf-8) ADMINPLAY 2008.11.04 7834
72 InnoDB 에서 MyISAM 으로, 혹은 MyISAM 에서 InnoDB 로 DB 타입 변경 방법 ADMINPLAY 2013.11.08 7838
71 Mysql 비번 변경/비번분실시 ADMINPLAY 2009.06.29 7890
70 MySQL 최대성능 올리기 ADMINPLAY 2009.07.19 7927
69 MySQL Commercial License ADMINPLAY 2009.09.28 7989
68 MySQL Replication ADMINPLAY 2009.11.19 8090
67 Mysql max_connection 늘리기 ADMINPLAY 2008.11.11 8259
Board Pagination Prev 1 2 3 4 5 Next
/ 5

Copyright ADMINPLAY corp. All rights reserved.

abcXYZ, 세종대왕,1234

abcXYZ, 세종대왕,1234