MYSQL
HOME > DB > MYSQL
2011.05.27 / 15:17

MySQL DataBase ¼­¹ö Æ©´× - MySQL Administrator ¸ð´ÏÅÍ Åø ¸ð´ÏÅ͸µ ÆÛÆ÷¸Õ½º

¾çºÎÀÇ»ê
Ãßõ ¼ö 330
Á¦¸ñ¾øÀ½  

¾ÕÀÇ °­Á¿¡¼­ ±âº»ÀûÀÎ ¸ð´ÏÅ͸µ ¹æ¹ý ¹× Conection, Memory Æ©´×¿¡ ´ëÇÏ¿© ¼Ò°³ÇÏ¿´½À´Ï´Ù. ±×·¯³ª show status, show variables ¸í·É¾î ¸¸À¸·Î´Â Áö¼ÓÀûÀ¸·Î MySQL DB Server »óŸ¦ ¸ð´ÏÅ͸µ Çϱ⿡´Â ºÒÆíÇÑ Á¡ÀÌ ¸¹½À´Ï´Ù.

±×·¡¼­ À̹ø °­Á¿¡´Â "MySQL Administrator" ÇÁ·Î±×·¥À» ÀÌ¿ëÇÏ¿© È¿°úÀûÀ¸·Î ¸ð´ÏÅ͸µÇÏ´Â ¹æ¹ý¿¡ ´ëÇÏ¿© ¼Ò°³Çϵµ·Ï ÇÏ°Ú½À´Ï´Ù.

°¡. ¼³Ä¡

  1. http://www.mysql.com/products/tools/ ¿¡¼­ MySQL Administrator ÇÁ·Î±×·¥À» ´Ù¿î·Îµå ¹Þ´Â´Ù.
    À̹ø °­Á¿¡¼­´Â ¸ð´ÏÅ͸µ¿¡ ´ëÇÑ ¼³¸íÀ̱⠿øµµ¿ì¿ëÀ» ´Ù¿î·Îµå ¹Þ¾Æ °³ÀÎ PC¿¡ ¼³Ä¡Çϵµ·Ï ÇÏ°Ú½À´Ï´Ù. ¼­¹ö¿¡ Á÷Á¢ ¼³Ä¡ÇÒ °æ¿ì´Â ¼­¹ö OS¿¡ ¸Â´Â ¹öÀüÀ» ´Ù¿î·Îµå ¹Þ¾Æ ¼³Ä¡ÇÏ½Ã¸é µË´Ï´Ù.
  2. ´Ù¿î·Îµå ¹ÞÀº mysql-administrator-x.x.x-win.msi ¸¦ ½ÇÇà½ÃŲ´Ù.
  3. ¼³Ä¡¸¶¹ý»ç¿¡ µû¶ó¼­ ¼³Ä¡ÇÑ´Ù.
  4. ¼³Ä¡°¡ ¿Ï·áµÇ¸é "½ÃÀÛ > ÇÁ·Î±×·¥ > MySQL > MySQL Administrator" ¸Þ´º°¡ »ý¼ºµÇ°í À̸¦ ÅëÇØ MySQL Administrator ½ÇÇàÇÑ´Ù.
  5. Á¢¼ÓÇÏ·Á´Â MySQL ServerÀÇ Server Host, Username,Password¸¦ ÀÔ·ÂÇÑ´Ù.

    MySQL Administrator

  6. MySQL Administrator¸¦ ÅëÇؼ­ Á¢¼ÓÇÑ MySQL ¼­¹ö¿¡ ´ëÇÑ Server Information, User Administration, Health µîÀÇ Á¤º¸¸¦ º¸½Ç ¼ö ÀÖ½À´Ï´Ù.

    MySQL Administrator

³ª. MySQL DB Server »óÅ ¸ð´ÏƼ¸µ

MySQL Administrator´Â Health ¸Þ´º¸¦ ÅëÇØ Connection Health, Memory Health Á¤º¸¸¦ Graph·Î µ¿ÀûÀ¸·Î Á¶È¸ÇÏ¿© º¼ ¼ö ÀÖ´Â ±â´É°ú Status Variables, System Variables¸¦ °èÃþÀûÀ¸·Î ±¸¼ºÇØ ³õ¾Æ ¼Õ½±°Ô ÇØ´ç Á¤º¸¸¦ Á¶È¸ÇÏ¿© º¼ ¼ö ÀÖ½À´Ï´Ù.

1. Connection Health 

MySQL Administrator

  • Connection Usage : ÃÖ´ë µ¿½Ã Á¢¼ÓÀÚ ´ëºñ ÇöÀç Á¢¼ÓÀ²( threads_connected / max_connections )
  • Traffic : Status Áß bytes_sent °ª¿¡ ´ëÇÑ Á¤º¸
  • Number of SQL Queries: Status Áß com_select °ª¿¡ ´ëÇÑ Á¤º¸

     ¡Ø °¢ Graph¿¡ ´ëÇÑ ÀÚ¼¼ÇÑ Á¤º¸´Â GraphÀ§¿¡¼­ ¸¶¿ì½º ¿À¸¥ÂÊÅ°¸¦ Ŭ¸¯ ÈÄ "Edit Graph" À» ÀÌ¿ëÇÏ½Ã¸é µË´Ï´Ù.

2. Memory Health

MySQL Administrator

  • Query Cache Hitrate : SQL ±¸¹® ¹× °á°ú¿¡ ´ëÇÑ Query CacheÀÇ Àç »ç¿ë·ü·Î½á, Hitrate°¡ ³ôÀ»¼ö·Ï ¼º´ÉÀÌ ÁÁ´Ù°í »ý°¢ÇÏ½Ã¸é µË´Ï´Ù.
  • Key Efficiency : ¼öÁ÷¹Ù´Â key bufferÀÇ »ç¿ë·®( [Key_blocks_used]*[key_cache_block_size] ) À̸ç, ¼± ±×·¡ÇÁ´Â 100-(^[Key_reads]/^[Key_read_requests])*100 ·Î½á Hitrate°¡ ÀÛÀ»¼ö·Ï È¿À²ÀÌ ÁÁÀº °ÍÀÔ´Ï´Ù.

3. System Variables & System Variables

MySQL Administrator

´Ù. »ç¿ëÀÚ Health ±×·¡ÇÁ ¸¸µé±â

Cache Miss Rate(%) =  Threads_created / Connections * 100 À» Graph¸¦ ÅëÇؼ­ ¸ð´ÏÅ͸µ ÇØ º¸°Ú½À´Ï´Ù.

  1. "Connection Health" ÅÇÀ» ¼±ÅÃÇÑ´Ù.
  2. ¾Æ·¡¿Í °°ÀÌ ¸¶¿ì½º¿À¸¥ÂÊÅ°¸¦ ÀÌ¿ëÇÏ¿© "Add Group" À» ÅëÇØ ±×·ìÀ» »ý¼ºÇÑ´Ù. Group CationÀº Cache Miss Rate·Î ÀÔ·ÂÇÑ´Ù.

    MySQL Administrator

  3. 2¹ø°ú µ¿ÀÏÇÑ ¹æ¹ýÀ¸·Î ÇØ´ç Group À§¿¡¼­ ¸¶¿ì½º¿À¸¥ÂÊÅ°¸¦ ÀÌ¿ëÇÏ¿© "Add Graph" ¸¦ Ŭ¸¯ÇÑ´Ù.
  4. ¾Æ·¡¿Í °°ÀÌ Value formula ¿Í Max. Formula µîÀÇ °ªÀ» ¼³Á¤ÇØ ÁØ´Ù.

    MySQL Administrator

  5. Cache Miss Rate(%) °ªÀ» ¸ð´ÏÅ͸µ ÈÄ¿¡  thread_cache_size °ªÀ» ÃÖÀûÈ­ ½ÃŲ´Ù.

    MySQL Administrator