skip-name-resolveéè¦
MySQLã使ã£ã¦ãã¦ããµã¼ãã¼ã®è² è·ã¯é«ããªãã®ã«æ¥ç¶ã§ããªãã¯ã©ã¤ã¢ã³ããçºçãç¶æ³ãè¦ããã¨show processlistããã¨unauthenticated userããããããããã¨ãããã£ãããã®ã³ãã¯ã·ã§ã³ãããµãã¦max connectionsã«å°éãæ¥ç¶ã§ããªãã¯ã©ã¤ã¢ã³ãããããããã£ãã
ãããã調ã¹ã¦ã¿ãã¨ã¯ã©ã¤ã¢ã³ãã®IPã¢ãã¬ã¹ã®DNSéå¼ãããã¦ãã¦ããã®å¦çã追ãã¤ããªããªãã¨ãããªããããã解決æ¹æ³ã¨ãã¦ã¯2ã¤ãã£ãã
- /etc/hostsã§ã¯ã©ã¤ã¢ã³ãã®åå解決ãã§ããããã«ãã
- /etc/my.cnfã«skip-name-resolveãè¨å®ãã¦MySQLãrestart
/etc/hostsã§ã®å¯¾çã¯ãæ軽ã ãã¡ã³ããã³ã¹ãé¢åãªæãã
skip-name-resolveã®ãªãã·ã§ã³ä»ãã¦ããªãã£ãã£ãâ¦ã¨èª¿ã¹ããä»ãã¦ããªããã¨ãçºè¦ã/etc/my.cnfã«è¨å®ã追è¨ãã¦MySQLãrestartããããããã«unauthenticated userãããªããªã£ãããã ããããè¨å®ããã¨MySQLã®ã¦ã¼ã¶ã¼ã§ãã¹ãåãã¼ã¹ã§ç®¡çããã¦ããã¦ã¼ã¶ã¼ããã°ã¤ã³ã§ããªããªãã®ã§æ³¨æï¼IPã¢ãã¬ã¹ã§ç®¡çããã¦ããã°åé¡ãªãï¼ãlocalhostã§ç®¡çããã¦ããã¦ã¼ã¶ã¼ã127.0.0.1ã§ç®¡çãã¹ãã
ãã 1ã¤æ°ã«ãªãã®ã¯ãunauthenticated userãããµãåºãã¿ã¤ãã³ã°ãããããªãã¨ãããã¨ãæ¥ç¶æ°ãå¤ããªãã¨ããµããã®ã ãããã©ãè¦ã¦ããã¨æ¥ã«ããµãã¦ããããã«è¦ããã
åè:
- http://dev.mysql.com/doc/refman/5.1/ja/dns.html
- http://d.hatena.ne.jp/y_fudi/20090109/1231484391
- http://ameblo.jp/dione/entry-10020079685.html
追è¨:
http://d.hatena.ne.jp/studio-m/20100924/1285303021 㧠id:studio-m ãããããã®è¨å®ã«ããããã³ããã¼ã¯ãè¨æ¸¬ãã¦ããã¾ããããã¡ãããããã¦ã覧ãã ããã¾ãã