MySQL 5.5 ã®ãã¹ããã£ãã·ã¥ã«é¢ããã¡ã¢ã
詳細ã¯ä»¥ä¸ããã¥ã¡ã³ãã«å ¨ã¦æ¸ãã¦ããã(è±æ)
ã·ã¼ã±ã³ã¹
- æ°ããã¯ã©ã¤ã¢ã³ãããæ¥ç¶ãããã¨ããµã¼ãã¯ãã®IPã¢ãã¬ã¹ãããã¹ãåããã¹ããã£ãã·ã¥ã«ããããã§ãã¯ããã
- ç¡ããã°ããµã¼ãã¯ãã¹ãåã解決ãããã¨ã試ã¿ãã
- ã¾ããIPã¢ãã¬ã¹ãããã¹ãåããã§ãã¯ããããã¦ãã¹ãåããIPã¢ãã¬ã¹ããã§ãã¯ãããã§ããã®çµæããªãªã¸ãã«ã®IPã¢ãã¬ã¹ã¨æ¯è¼ããåãã§ãããã¨ã確èªããå¾ããã¹ããã£ãã·ã¥ã«æ ¼ç´ããã
- ãã£ãã·ã¥ãä¸æ¯ã®å ´åã¯ãæãé·ãæé使ããã¦ããªãã¨ã³ããªãç ´æ£ãããã
åå解決
- OSããµãã¼ããã¦ããå ´åãã¹ã¬ããã»ã¼ã㪠gethostbyaddr_r() ã gethostbyname_r() ãã³ã¼ã«ããã
- ããã§ãªããã°ãMUTEXãããã¯ãã¦ã代ããã« gethostbyaddr() ã gethostbyname() ãã³ã¼ã«ããã
- ãã®å ´åãMUTEXããã¯ã解æ¾ãããã¾ã§ãä»ã®ã¹ã¬ããã¯ãã¹ããã£ãã·ã¥ã«ãªããã¹ãåã®åå解決ãã§ããªãã
å©ç¨ç®ç
- ãã£ãã·ã¥ã使ããã¨ã§ããµã¼ãã¯åã¯ã©ã¤ã¢ã³ãããæ¥ç¶ããã度ã«DNSåç §ãè¡ããªããªãã(ååã®æ¥ç¶æã«DNSåç §ããã)
- ãã£ãã·ã¥ã¯æ¥ç¶ä¸ã«çããã¨ã©ã¼ã®æ å ±ãå«ãã§ããããã®ããã¤ãã®ã¨ã©ã¼ã¯"blocking"ã§ããããµã¼ãã¯æ¥ç¶ã¨ã©ã¼ãå¤ãçºçãããã¹ãããã®æ¥ç¶ãæããããã㯠max_connect_errors ã®ãã©ã¡ã¼ã¿ã§è¨±å®¹ããã¨ã©ã¼ã®æ°ã調æ´ã§ããã詳ããã¯ãã¡ããMySQL :: MySQL 5.5 Reference Manual :: B.6.2.6 Host 'host_name' is blockedã
ãã¹ããã£ãã·ã¥ã®ãã©ãã·ã¥
- ãããã¯ããããã¹ãã解é¤ããã«ã¯ã FLUSH HOSTS ã¹ãã¼ãã¡ã³ããçºè¡ãããã mysqladmin flush-hosts ã³ãã³ããå®è¡ãããã¨ã§ããã¹ããã£ãã·ã¥ããã©ãã·ã¥ãããã¨ãã§ããã
- ãã£ãã·ã¥å ã«æ å ±ãåå¨ããªããã¹ã(ã¯ã©ã¤ã¢ã³ãIP)ããã®æ¥ç¶ããã£ãéããã£ãã·ã¥ãä¸æ¯(Full)ã®å ´åã¯ãæãå¤ã(æªä½¿ç¨æéãæãé·ã)ãã¹ãã®ãã£ãã·ã¥ã¨ã³ããªãå»æ£ãããã
- ããå¤ããã£ãã·ã¥ã¨ã³ããªããããã¯ããããã¹ãã ã£ãå ´åããã®ãã¹ãã¯ãã£ãã·ã¥ããæ¶ãã¦ããã®ã§ã¢ã³ãããã¯æ±ãã¨ãªãã
ãã¹ããã£ãã·ã¥ã®æå¹/ç¡å¹
- ãã¹ããã£ãã·ã¥ã¯ããã©ã«ãã§æå¹ã¨ãªã£ã¦ããã
- ç¡å¹ã«ãããå ´åã¯ããµã¼ãã®èµ·åæã« --skip-host-cache ãªãã·ã§ã³ãä»ããã
ãã®ä»ããã©ã¼ãã³ã¹ç
- ãã¹ã解決ã®ããã®DNSåç §ãç¡å¹ã«ãããå ´åã¯ããµã¼ãã®èµ·åæã« --skip-name-resolve ãªãã·ã§ã³ãä»ããããã®å ´åããµã¼ãã¯æ¥ç¶ãã¹ãã®å¤å¥ãããã¹ãåã§ã¯ãªãIPã¢ãã¬ã¹ã ãã使ç¨ããã
- ãããå¤ãã®ãã¹ãã¨ããã¼é ãDNSãæã£ã¦ããå ´åãDNSåç §ãç¡å¹ã«ãããã"HOST_CACHE_SIZE"ã®å®ç¾©å¤ãå¢ãã(ããã©ã«ãã¯128ãå¤æ´æã¯ãªã³ã³ãã¤ã«ãå¿ è¦)ãã¨ã§ããã©ã¼ãã³ã¹ãæ¹åãããããããªãã
- å®å ¨ã«TCP/IPæ¥ç¶ã許å¯ããªãå ´åã¯ããµã¼ãã®èµ·åæã« --skip-networking ãªãã·ã§ã³ãä»ããã
以ä¸ãããã§ã¯ï¼ =͟͟͞͞(๑•̀=͟͟͞͞(๑•̀д•́=͟͟͞͞(๑•̀д•́๑)=͟͟͞͞(๑•̀д•́
å®è·µãã¤ããã©ã¼ãã³ã¹MySQL 第3ç
- ä½è : Baron Schwartz,Peter Zaitsev,Vadim Tkachenko,èæ± ç èª,æ ªå¼ä¼ç¤¾ã¯ã¤ã¼ã
- åºç社/ã¡ã¼ã«ã¼: ãªã©ã¤ãªã¼ã¸ã£ãã³
- çºå£²æ¥: 2013/11/25
- ã¡ãã£ã¢: 大åæ¬
- ãã®ååãå«ãããã° (7件) ãè¦ã