http://www.mysqlkorea.co.kr
Çѱ۸Ŵº¾ó 5.0 , Çѱ۸Ŵº¾ó 5.1 , MySQL 5.1 HA , »ç¿ëÀڸŴº¾ó
°øÁö»çÇ×  
´º½º  
Áú¹®°ú ´äº¯
DBA
Developer
Cluster
ÅäÅ©¹Ú½º  
À̺¥Æ®  
¼­Æ÷Æ® ƼÄÏ  
ÃֽűÛ
foreign key ¼³Á¤¡¦
ÀÎÅØ½º Ãß°¡ µî¿¡¡¦
mysql master - s¡¦
´Ù´ë´Ù °ü°è¿¡¼­ ¡¦
mysql myÆÄÀϰú ¡¦
 
Áú¹®°ú ´äº¯ (Cluster) > Ä¿¹Â´ÏƼ Á¸ > Áú¹®°ú ´äº¯ (Cluster)
¸®Çø® ÄÉÀÌ¼Ç ¼³Á¤Áú¹® ¤Ì
±Û¾´ÀÌ : adminsql   ³¯Â¥ : 11-08-31 21:29   Á¶È¸¼ö : 6086
¸®Çø®ÄÉÀÌ¼Ç ¼³Á¤½Ã¿¡ ¹Ýµå½Ã º°µµ °èÁ¤°ú µðºñ¸¦ ¸¸µé¾î¾ßÇϳª¿ä?
 
Àú´Â ±âÁ¸µðºñ °èÁ¤¿¡´Ù°¡ ±ÇÇѸ¸
 
GRANT REPLICATION SLAVE ON *.*  TO °èÁ¤@¾ÆÀÌÇÇ  IDENTIFIED BY 'ºñ¹ø';
 
ÀÌ·±½ÄÀ¸·Î ³Ö¾îÁÖ¾ú´Âµ¥¿ä À½..
 
°èÁ¤±ÇÇÑÀº
 
        Select_priv: N
          Insert_priv: N
          Update_priv: N
          Delete_priv: N
          Create_priv: N
            Drop_priv: N
          Reload_priv: N
        Shutdown_priv: N
         Process_priv: N
            File_priv: N
           Grant_priv: N
      References_priv: N
           Index_priv: N
           Alter_priv: N
         Show_db_priv: N
           Super_priv: N
Create_tmp_table_priv: N
     Lock_tables_priv: N
         Execute_priv: N
      Repl_slave_priv: Y      <-- ¿©±â¸¸ º¯°æµÇ¸é µÇ´Â°ÍÀÌ ¸Â´ÂÁö¿ä?
     Repl_client_priv: N
     Create_view_priv: N
       Show_view_priv: N
  Create_routine_priv: N
   Alter_routine_priv: N
     Create_user_priv: N
           Event_priv: N
         Trigger_priv: N
             ssl_type:
           ssl_cipher:
          x509_issuer:
         x509_subject:
        max_questions: 0
          max_updates: 0
      max_connections: 0
 max_user_connections: 0
 
 
 
| Waiting for master to send event | ¾ÆÀÌÇÇ| °èÁ¤¸í         |        3306 |            60 | mysql-bin.000301 |             1186985 | localhost-relay-bin.000003 |         50150 | mysql-bin.000287      | Yes              | No                |                 |                     |                    |                        |                         |                             |       1062 | Error 'Duplicate entry '153664' for key 'PRIMARY'' on query. Default database: 'µðºñ¸í'. Query: 'insert into zetyx_board_comment_muung (parent,ismember,name,password,memo,reg_date,ip) values ('1','','mylan xan','5ce632b14f030083','  6 <a href=http://msa.umn.edu/conact-us/ target=_blank>http://msa.umn.edu/conact-us/</a> mylan xanax pics or <a href=http://www.mhoxygen.com/index.php?option=com_content&view=category&layout=blog&id=95&Itemid=77 target=_blank>http://www.mhoxygen.com/index.php?option=com_content&view=category&layout=blog&id=95&Itemid=77</a> soma taken with tramdol experiences or <a href=http://coahc.org/thrift-stores/ target=_blank>http://coahc.org/thrift-stores/</a> phentermine 37.5 diet pills or ','1313910238','195.191.54.218')' |            0 |               50005 |       807737301 | None            |                |             0 | No                 |                    |                    |                 |                   |                |                  NULL | No                            |          1045 | error connecting to master '°èÁ¤@¾ÆÀÌÇÇ:3306' - retry-time: 60  retries: 86400 |           1062 | Error 'Duplicate entry '153664' for key 'PRIMARY'' on query. Default database: 'µðºñ¸í'. Query: 'insert into zetyx_board_comment_muung (parent,ismember,name,password,memo,reg_date,ip) values ('1','','mylan xan','5ce632b14f030083','  6 <a href=http://msa.umn.edu/conact-us/ target=_blank>http://msa.umn.edu/conact-us/</a> mylan xanax pics or <a href=http://www.mhoxygen.com/index.php?option=com_content&view=category&layout=blog&id=95&Itemid=77 target=_blank>http://www.mhoxygen.com/index.php?option=com_content&view=category&layout=blog&id=95&Itemid=77</a> soma taken with tramdol experiences or <a href=http://coahc.org/thrift-stores/ target=_blank>http://coahc.org/thrift-stores/</a> phentermine 37.5 diet pills or ','1313910238','195.191.54.218')' |
 
¿Í °°ÀÌ ½½·¹À̺ê Ãø¿¡¼­ È®ÀÎµÇ³×¿ä ¤Ì¤Ì
 
 
mysql> show master status;
+------------------+----------+--------------+------------------+
| File             | Position | Binlog_Do_DB | Binlog_Ignore_DB |
+------------------+----------+--------------+------------------+
| mysql-bin.000301 |  1568908 |              |                  |
+------------------+----------+--------------+------------------+
1 row in set (0.00 sec)
 
¸¶½ºÅÍÂÊÀº ÀÌ·¸±¸¿ä ¤Ì¤Ì
 
°£´ÜÇÑ ¼³Á¤Àε¥ ¤Ì¤Ì ½±Áö¾ÊÀ¸³×¿ä ¤Ì¤Ì
 
°í¼ö´Ôµé Á¶¾ðºÎʵ右´Ï´Ù.
 

 
royster
¸¶½ºÅÍÃø¿¡ replication°èÁ¤ »ý¼ºÇѰŰÚÁÒ?

Repl_slave_priv: Y ¸Â±¸¿ä.

DB»ý¼ºÇÒ ÇÊ¿ä ¾ø±¸¿ä.. ±âÁ¸°èÁ¤ÀÇ Ä÷³µé Á¶Á¤Çصµ µË´Ï´Ù.

·¹ÆÛ·±½º»ó¿¡¼­´Â Grant¹®À¸·Î ¸®Çø®ÄÉÀÌ¼Ç °èÁ¤ »ý¼ºÇϴ°ÍÀ» ±ÇÀåÇÕ´Ï´Ù.

GRANT REPLICATION SLAVE ON *.* TO 'SlaveUser'@'SlaveHost' IDENTIFIED BY 'ºñ¹Ð¹øÈ£'

´Ù½ÃÇѹø ¸¶½ºÅÍÃø mysql.user Å×À̺íÀÇ ¸®Çø®ÄÉÀÌ¼Ç °èÁ¤¿¡ ´ëÇÑ
Host , User , Password ...±âŸ Ä÷³À» Ã¼Å©ÇØº¸¼¼¿ä.
¹ÎÁ·
°èÁ¤À» µû·Î ¸¸µå´Â°Å³Ê º¸¾È, °èÁ¤°ü¸® Ãø¸é¿¡¼­ ±×·¸°Ô ±ÇÀåÇϴ°ÅÁÒ..
ÀÌÀü±Û Cluster ¹®Á¦ 
´ÙÀ½±Û Å×½ºÆ® Çϱâ Àü ¼³Á¤ °ü·Ã Áú¹®µå¸³´Ï´Ù. 
MySQL Korea »çÀÌÆ®ÀÇ ÄÁÅÙÃ÷ ¼ÒÀ¯±ÇÀº (ÁÖ)»ó»óÀ̺ñÁî¿¡ ÀÖÀ¸¹Ç·Î ¹«´ÜÀüÀ縦 ±ÝÇÕ´Ï´Ù.
Copyright ¨Ï ssebiz All Rights Reserved.