Mysql Slave does not update

I have replication, tuned every thing looks great, I have no errors, but the data does not move in the Slave

mysql> show slave status \G
*************************** 1. row ***************************
             Slave_IO_State: Waiting for master to send event
                Master_Host: xxxxx
                Master_User: xxxxxx
                Master_Port: xxxx
              Connect_Retry: 30
            Master_Log_File: mysql-bin.000006
        Read_Master_Log_Pos: 98
             Relay_Log_File: xxxxx-relay-bin.002649
              Relay_Log_Pos: 235
      Relay_Master_Log_File: mysql-bin.000006
           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: 98
            Relay_Log_Space: 235
            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
1 row in set (0.00 sec)
+3
source share
2 answers

Run a show master statusor show master status\Gin the main database. He will give you the correct values ​​to update your subordinate.

From your slave status, it looks like your slave has successfully connected to the master and is waiting for log events. For me, this means that your subordinate user is configured correctly and has the correct access. It seems you just need to synchronize the correct position of the log file.

, , , , , , , , , , , pos. 30 , , .

+3

  • .
  • .

, . . .

+1

Source: https://habr.com/ru/post/1735624/


All Articles