MySQL创建表复制没有被复制的表

时间:2014-05-14 02:36:57

标签: mysql sql database-replication

我有一个5主从MySQL复制设置。当我在我的主人上创建一个表时,它会被复制到5个奴隶中的3个。但是其他从属服务器不会复制“CREATE TABLE”事务。

包括现有表上的DROP在内的所有操作都会被复制。

以下是我的SHOW SLAVE STATUS \ G的输出;命令一个完美的奴隶。

*************************** 1. row ***************************
           Slave_IO_State: Waiting for master to send event
              Master_Host: X.X.X.X
              Master_User: slave22
              Master_Port: 3306
            Connect_Retry: 60
          Master_Log_File: mysql-bin.003852
      Read_Master_Log_Pos: 822377736
           Relay_Log_File: mysqld-relay-bin.001788
            Relay_Log_Pos: 822377881
    Relay_Master_Log_File: mysql-bin.003852
         Slave_IO_Running: Yes
        Slave_SQL_Running: Yes
          Replicate_Do_DB: 
      Replicate_Ignore_DB: 
       Replicate_Do_Table: 
   Replicate_Ignore_Table: 
  Replicate_Wild_Do_Table: 
Replicate_Wild_Ignore_Table: 
               Last_Errno: 0
               Last_Error: 
             Skip_Counter: 0
      Exec_Master_Log_Pos: 822377736
          Relay_Log_Space: 822378080
          Until_Condition: None
           Until_Log_File: 
            Until_Log_Pos: 0
       Master_SSL_Allowed: No
       Master_SSL_CA_File: 
       Master_SSL_CA_Path: 
          Master_SSL_Cert: 
        Master_SSL_Cipher: 
           Master_SSL_Key: 
    Seconds_Behind_Master: 0
Master_SSL_Verify_Server_Cert: No
            Last_IO_Errno: 0
            Last_IO_Error: 
           Last_SQL_Errno: 0
           Last_SQL_Error: 

现在这是在没有复制CREATE STATEMENTS的从站上显示SHOW SLAVE STATUS \ G命令的输出

*************************** 1. row ***************************
           Slave_IO_State: Waiting for master to send event
              Master_Host: X.X.X.X
              Master_User: slave21
              Master_Port: 3306
            Connect_Retry: 60
          Master_Log_File: mysql-bin.003852
      Read_Master_Log_Pos: 822708979
           Relay_Log_File: mysqld-relay-bin.001793
            Relay_Log_Pos: 822709124
    Relay_Master_Log_File: mysql-bin.003852
         Slave_IO_Running: Yes
        Slave_SQL_Running: Yes
          Replicate_Do_DB: 
      Replicate_Ignore_DB: 
       Replicate_Do_Table: 
   Replicate_Ignore_Table: 
  Replicate_Wild_Do_Table: 
Replicate_Wild_Ignore_Table: 
               Last_Errno: 0
               Last_Error: 
             Skip_Counter: 0
      Exec_Master_Log_Pos: 822708979
          Relay_Log_Space: 822709323
          Until_Condition: None
           Until_Log_File: 
            Until_Log_Pos: 0
       Master_SSL_Allowed: No
       Master_SSL_CA_File: 
       Master_SSL_CA_Path: 
          Master_SSL_Cert: 
        Master_SSL_Cipher: 
           Master_SSL_Key: 
    Seconds_Behind_Master: 0
Master_SSL_Verify_Server_Cert: No
            Last_IO_Errno: 0
            Last_IO_Error: 
           Last_SQL_Errno: 0
           Last_SQL_Error: 

请告知

0 个答案:

没有答案