简体   繁体   中英

MySQL replication, master only replicate a portion data to slave

I have a master/slave mysql deployment.
And success to do replication.
But after several weeks. Only a portion of data replicate to slave.
It's not the network. Because it replicate indeed but a portion lose.

I've check show master status\\G; and show slave status\\G; show master status\\G; and show slave status\\G;

 Slave_IO_Running: Yes
 Slave_SQL_Running: Yes

and

Master_Log_File: mysql-bin.000016
Read_Master_Log_Pos: 515965048

is OK also. master_log_pos is up to date with the master.

Notice. The table of master is MyISAM and the corresponding table of slave is InnoDB.
I don't think it's an issue.

There is a number of variables on the slave that effects replication.

On the slave it's the replicate-do-* and --replicate-ignore-*. You should read through that part of the manual

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM