| mysqlrowcopy. mysqlRowCopy´Â °á°ú ÁýÇÕ¿¡¼ »ðÀÔ¹®À» »ý¼ºÇÏ´Â µµ±¸ÀÔ´Ï´Ù. |
Áö±Ý ´Ù¿î·Îµå |
mysqlrowcopy. ¼øÀ§ ¹× ¿ä¾à
- °Ô½ÃÀÚ À̸§:
- Michael Bacarella
- °Ô½ÃÀÚ À¥»çÀÌÆ®:
- http://michael.bacarella.com/?p=projects#tmetric
mysqlrowcopy. ű×
mysqlrowcopy. ¼³¸í
mysqlrowcopy´Â °á°ú ÁýÇÕ¿¡¼ »ðÀÔ¹®À» »ý¼ºÇÏ´Â µµ±¸ÀÔ´Ï´Ù. mysqlrowcopy´Â °á°ú ÁýÇÕ¿¡¼ »ðÀÔ¹®À» »ý¼ºÇÏ´Â µµ±¸ÀÔ´Ï´Ù. ´ÜÀÏ ¼±Åà Äõ¸®¿¡¼ mysqldump¸¦ ½ÇÇàÇÒ ¼öÀÖ´Â °Í°ú À¯»çÇÑ Ãâ·ÂÀ» »ý¼ºÇÕ´Ï´Ù.ÀÌ ÇÁ·ÎÁ§Æ®´Â QA¿Í Production MySQL Databases°£¿¡ À̵¿ µ¥ÀÌÅÍÀÇ ÀϺθ¦ Á¦°ÅÇÏ´Â µ¥ µµ¿òÀ̵˴ϴÙ. MySQLRowCopy¸¦ ºôµåÇÏ·Á¸é ´ÙÀ½À» ½ÇÇàÇؾßÇÕ´Ï´Ù. ./ configuremakea mysqlrowcopy ¹× mysqlrowcopy.debug ÆÄÀÏÀÌ »ý¼ºµË´Ï´Ù. ±×µéÀº µ¿ÀÏÇÑ ±â´ÉÀ» °¡Áö°í ÀÖÀ¸¸ç .debug ¹öÀüÀº ´Ü¼øÈ÷ (GDB)¿¡ ³»Àå µÈ µð¹ö±ë ±âÈ£¸¦ °¡Áö°í ÀÖ½À´Ï´Ù .Since MySQLRowCopy´Â °â¼ÕÇÑ CPU ¹× RAM »ç¿ëÀ¸·Î I / O ¹ÙÀεù µÉ °ÍÀÔ´Ï´Ù. 64 ºñÆ® ¹öÀüÀ» ºôµåÇÏ´Â À¯ÀÏÇÑ ÀÌÀ¯´Â 64 ºñÆ® ¶óÀ̺귯¸®¿¡ ´ëÇÑ µ¿Àû ¿¬°á 32 ºñÆ® ¹ÙÀ̳ʸ®ÀÇ ÀáÀçÀû ÀÎ ¹®Á¦¸¦ ÇØ°áÇÏ·Á¸é .Recipes1. QA ¼¹ö¿¡¼ ÇÁ·Î´ö¼Ç Server.e.g·Î MySQL »ç¿ëÀÚ °èÁ¤ 'Reaper'¸¦ ¸¶À̱׷¹À̼ÇÇÕ´Ï´Ù. MySQL µ¥ÀÌÅͺ£À̽º ¼¹ö QA3.Example.com to prod1.example.com:$ mysqlrowcopy -h qa3.example.com '¿©±â¼ user = "Reaper"'mysql db> reper.sql $ mysql -h prod1.example¿¡¼ ¼±ÅÃÇϽʽÿÀ. COM MySQL date_sub (Áö±Ý, °£°Ý 24 ½Ã°£) '±ÝÀ¶ ÁÖ½Ä> Day-Stocksql $ °í¾çÀÌ ´çÀÏ - Àç°í | mysql -h finance-test.example.com finance3. À¯»çÇÑ Çʵ尡ÀÖ´Â ´Ù¸¥ ¼¹öÀÇ Å×ÀÌºí°£¿¡ µ¥ÀÌÅ͸¦ º¹»çÇϽʽÿÀ. »ý»ê µ¥ÀÌÅͺ£À̽º¿¡ Å×À̺íÀÇ 'zip'¿¡ °øÅë µ¥ÀÌÅÍ°¡ ÀÖ½À´Ï´Ù. MySQL> DESC ZIP; + ------------- + ------------- + ------ + ----- + ------- - + ------- + | Çʵå | À¯Çü | null | Å° | ±âº»°ª | Ãß°¡ | + ------------- + ------------- + ------ + ----- + ------- - + ------- + | ¿ìÆí ¹øÈ£ | VARCHAR (5) | | PRI | | | | ZipcoDetype | char (1) | ¿¹ | | null | | | µµ½Ã | VARCHAR (32) | ¿¹ | | null | | | CityType | char (1) | ¿¹ | | null | | | ÁÖ | VARCHAR (32) | ¿¹ | | null | | | statecode | char (3) | ¿¹ | | null | | | AreaCode | char (3) | ¿¹ | | null | | | À§µµ | VARCHAR (12) | ¿¹ | | null | | | °æµµ | VARCHAR (12) | ¿¹ | | null | | + ------------- + ------------- + ------ + ----- + ------- - + ------- + 9 Çà ÁýÇÕ (0.00 ÃÊ) ¹× ¿¬±¸ µ¥ÀÌÅͺ£À̽º¿¡ Å×À̺í 'Zipposition'ÀÌ ÀÖ½À´Ï´Ù. MySQL> DESC Zipposition; + ------------- + ------------- + ------ + ----- + ------- - + ------- + | Çʵå | À¯Çü | null | Å° | ±âº»°ª | Ãß°¡ | + ------------- + ------------- + ------ + ----- + ------- - + ------- + | ¿ìÆí ¹øÈ£ | VARCHAR (5) | | | | | | À§µµ | VARCHAR (12) | ¿¹ | | null | | | °æµµ | VARCHAR (12) | ¿¹ | | null | | + ------------- + ------------- + ------ + ----- + ------- - +------ + 3 Çà ¼¼Æ® (0.00 ÃÊ) »ý»ê ÁöÆÛ¿¡¼ ¿¬±¸ Zipposition¿¡ µ¥ÀÌÅ͸¦·ÎµåÇÏ·Á´Â °Í. $ mysqlrowcopy -h production '¼±Åà ¿ìÆí ¹øÈ£, À§µµ, °æµµ'ÀϹÝÀûÀÎ zipposition> pos.sql $ ¼±Åà °í¾çÀÌ pos.sql | MySQL -h QA Researchnote´Â ù ¹ø° ÁÙ¿¡ 'Zipposition'À» ÁöÁ¤ÇÏ¿© ¸ñÀûÁö Å×À̺íÀÌ ¹«¾ùÀ» ÇÒ °ÍÀÎÁö¸¦ ¾Ë·ÁÁÝ´Ï´Ù.
mysqlrowcopy. °ü·Ã ¼ÒÇÁÆ®¿þ¾î