RedHat 8.0¿¡ ¼³Ä¡µÈ MySQL ¼¹ö¿¡ ¸®¸ðÆ®(WWW2, MAIL µî)·Î Á¢¼ÓÇϸé
Á¢¼ÓµÇ´Â ¼ø°£ ¾Æ·¡ÀÇ ¸Þ½ÃÁö°¡ Ãâ·ÂµÇ¸ç ¹Ù·Î Á¢¼ÓÀÌ ²÷±â´Â Çö»óÀÌ ÀϾ°í ÀÖ½À´Ï´Ù.
$ mysql -uadmin -ptltmxpa1 -hdb.iwiz.pe.kr webservice ERROR 2013: Lost
connection to MySQL server during query
À̶§ MySQL ¿¡·¯·Î±×¸¦ º¸¸é ´ÙÀ½°ú °°Àº ¸Þ¼¼Áö°¡ Ãß°¡µÇ¾î ÀÖ½À´Ï´Ù.
Number of processes running now: 1 mysqld process hanging, pid 9545 -
killed 030113 09:38:54 mysqld restarted /home1/mysql/libexec/mysqld:
ready for connections
Áï, ¸®¸ðÆ®¿¡¼ Á¢¼ÓÇϸé ÇÁ·Î¼¼½º°¡ ¹Ù·Î Á×¾î¹ö¸®±â ¶§¹®¿¡, Ä¿³Ø¼ÇÀÌ ²÷±â´Â
°ÍÀÔ´Ï´Ù.
ÀÌ Çö»ó¿¡ ´ëÇÑ ÀÚ·áµéÀ» ã¾Æº» °á°ú RedHat 8.0ÀÇ ¹ö±× ¶§¹®ÀÎ °ÍÀ¸·Î Æľǵǰí
ÀÖ½À´Ï´Ù. Áï, RedHat 8.0ÀÇ glibc¿¡¼ dns name resolve ÇÏ´Â ºÎºÐ¿¡ ¹®Á¦°¡
ÀÖ¾î ¸®¸ðÆ®¿¡¼ Ä¿³Ø¼ÇÀ» ÇÏ¸é ¸®¸ðÆ® È£½ºÆ®ÀÇ nameÀ» resolve ÇÏ´Â °úÁ¤¿¡¼ ÇÁ·Î¼¼½º°¡
Á×´Â °ÍÀÔ´Ï´Ù.
ÀÌ ¹®Á¦¸¦ ÇØ°áÇÏ·Á¸é /etc/my.cnf ÆÄÀÏÀ» ¿¾î [mysqld] ºÎºÐ¿¡ skip-name-resolve
¶ó°í ³Ö½À´Ï´Ù. ±×¸®°í mysqld¸¦ Àç½ÃÀÛÇϸé ÀÌÈÄ ¸®¸ðÆ®¿¡¼ Á¢¼ÓÀ»
Çؿ͵µ name resolve¸¦ ½ÃµµÇÏÁö ¾Ê±â ¶§¹®¿¡ ¹®Á¦¾øÀÌ Á¢¼ÓµË´Ï´Ù.
±×·¯³ª ¿©·¯ °Ô½Ã¹°µé¿¡¼ °¡±ÞÀû RedHat 8.0¿¡¼ MySQLÀ» ¼³Ä¡ÇÒ ¶§´Â ¼Ò½º ÄÄÆÄÀÏÀ»
ÇÏÁö¸»°í, RPMÀ̳ª ¹ÙÀ̳ʸ® ¹öÀüÀ» ¹Þ¾Æ ¼³Ä¡ÇÒ °ÍÀ» ±ÇÀåÇÏ°í ÀÖ½À´Ï´Ù. ÄÄÆÄÀϵÈ
¹öÀüÀº ¹ö±×¾ø´Â glibc ¶óÀ̺귯¸®¸¦ ÀÌ¿ëÇØ ÄÄÆÄÀÏÇÑ ÈÄ ¹èÆ÷Çϱ⠶§¹®À̶ø´Ï´Ù.
|