Ä¿ÇǴнº, ½Ã½ºÅÛ ¿£Áö´Ï¾îÀÇ ½°ÅÍ
  MySQLÀÇ È£½ºÆ® ºí·°Å· & max_connect_errors ÀÛ¼ºÀÏ : 2004/05/30 23:04
 
  • ±Û¾´ÀÌ : ÁÁÀºÁøÈ£ ( http://coffeenix.net/ )
  • Á¶È¸¼ö : 13196
     
    Á¦  ¸ñ : MySQLÀÇ È£½ºÆ® ºí·°Å· & max_connect_errors
    ÀÛ¼ºÀÚ : ÁÁÀºÁøÈ£(truefeel, http://coffeenix.net/ )
    ÀÛ¼ºÀÏ : 2004.05.30(ÀÏ)

    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


    Ä¿ÇǴнº, ½Ã½ºÅÛ ¿£Áö´Ï¾îÀÇ ½°ÅÍ / URL : http://coffeenix.net/board_view.php?bd_code=383