Description of common parameters in MySQL slave library configuration

#Enable the slave log, so that chain replication can be performed
log-slave-updates=1 #Whether the slave

is read-only, 0 means read-write, 1 means
read-only read-only=1

#Only copy a table
replicate-do -table=tablename #Only

copy some tables (available matches)
replicate-wild-do-table=tablename% #Only

copy a certain library
replicate-do-db=dbname #Only

copy some libraries
replicate-wild-do- db=dbname% #Do

not replicate a table
replicate-ignore-table=tablename #Do

not replicate some tables
replicate-wild-ignore-table=tablename% #Do

not replicate a library
replicate-ignore-db=dbname #Complete

replication Whether the sql statement is immediately cleared from the relay log, 1 means to clear immediately
relay-log-purge=1 #Slave

server host, used to show slave hosts to generate a list of slave libraries
report-host=hostname

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325227873&siteId=291194637