Skip to content

조회 수 17769 추천 수 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

  1. No Image 06Jan
    by ADMINPLAY
    2014/01/06 by ADMINPLAY
    Views 8762 

    MySQL 특정 테이블만 백업하기

  2. No Image 08Nov
    by ADMINPLAY
    2013/11/08 by ADMINPLAY
    Views 7836 

    InnoDB 에서 MyISAM 으로, 혹은 MyISAM 에서 InnoDB 로 DB 타입 변경 방법

  3. No Image 24Sep
    by ADMINPLAY
    2013/09/24 by ADMINPLAY
    Views 9330 

    mysql 5.5.x my.cnf 참고

  4. [우분투] mysql, data 디렉토리 변경

  5. MySQL 테이블명 대소문자 구분안하기

  6. phpMyAdmin 에서 icon 과 text 중 icon 만 보이게 하기

  7. innodb recovery

  8. No Image 17Dec
    by ADMINPLAY
    2012/12/17 by ADMINPLAY
    Views 17269 

    mysql 다중 서버 관리

  9. MySQL 튜닝 값을 탐지해주는 유용한 툴

  10. No Image 16Jan
    by ADMINPLAY
    2012/01/16 by ADMINPLAY
    Views 18089 

    mysql - copying to tmp table

  11. No Image 16Jan
    by ADMINPLAY
    2012/01/16 by ADMINPLAY
    Views 15925 

    [데이터베이스] [DBMS-MYSQL] "SHOW PROCESSLIST"시 state 종류 및 설명

  12. No Image 16Jan
    by ADMINPLAY
    2012/01/16 by ADMINPLAY
    Views 17155 

    MYSQL 4.0 --> 5.1 마이그레이션

  13. No Image 16Jan
    by ADMINPLAY
    2012/01/16 by ADMINPLAY
    Views 18413 

    [MySQL 5.1.4] /bin/rm: cannot remove `libtoolT': No such file or directory

  14. No Image 09Apr
    by ADMINPLAY
    2011/04/09 by ADMINPLAY
    Views 19335 

    MySQL 튜닝 query cache 설정

  15. No Image 09Apr
    by ADMINPLAY
    2011/04/09 by ADMINPLAY
    Views 18381 

    Mysql - Query Cache

  16. No Image 09Apr
    by ADMINPLAY
    2011/04/09 by ADMINPLAY
    Views 17435 

    FULLTEXT 인덱스와 서치

  17. No Image 18Mar
    by ADMINPLAY
    2011/03/18 by ADMINPLAY
    Views 15857 

    MySQL에서 Query Cache 사용하기

  18. No Image 09Mar
    by ADMINPLAY
    2011/03/09 by ADMINPLAY
    Views 17769 

    MySQL의 호스트 블럭킹 & max_connect_errors

  19. No Image 26Nov
    by ADMINPLAY
    2010/11/26 by ADMINPLAY
    Views 19497 

    ../depcomp: line 571: exec: g++: not found

  20. No Image 07Jul
    by ADMINPLAY
    2010/07/07 by ADMINPLAY
    Views 22840 

    libmysqlclient.so.15: cannot open shared object file: No such file or directory

Board Pagination Prev 1 2 3 4 5 Next
/ 5

Copyright ADMINPLAY corp. All rights reserved.

abcXYZ, 세종대왕,1234

abcXYZ, 세종대왕,1234