mysql 主从配置参数

mysql-master

  
  
  
  
  1. server-id = 1 
  2. binlog-ignore-db = mysql 
  3. binlog-ignore-db = test 
  4. binlog-ignore-db = information_schema 
  5. replicate-ignore-db = information_schema 
  6. replicate-ignore-db = test 
  7. replicate-ignore-db = mysql 
  8. sync-binlog = 1 
mysql-slave
  
  
  
  
  1. server-id = 2 
  2. binlog-ignore-db = mysql 
  3. binlog-ignore-db = test 
  4. binlog-ignore-db = information_schema 
  5. replicate-ignore-db = information_schema 
  6. replicate-ignore-db = test 
  7. replicate-ignore-db = mysql 
  8.  
  9. master-host = 192.168.0.x 
  10. master-user = backup 
  11. master-password = 123 
  12. master-port = 3306 
  13. master-connect-retry = 10 
  14. sync-binlog = 1 

 

你可能感兴趣的:(mysql,数据库,Replication,主从,休闲)