github.com/pingcap/tiflow@v0.0.0-20240520035814-5bf52d54e205/dm/config/source.yaml (about) 1 2 #server id of slave for binlog replication 3 #each instance (master and slave) in replication group should have different server id 4 server-id: 101 5 6 #represents a MySQL/MariaDB instance or a replication group 7 source-id: mysql-replica-01 8 9 #flavor: mysql/mariadb 10 flavor: mysql 11 12 #enable relay log 13 enable-relay: false 14 # relay-binlog-name: '' 15 # relay-binlog-gtid: '' 16 # relay-dir: ./relay_log 17 18 #enable gtid in relay log unit 19 enable-gtid: false 20 21 # when this field is true, all tasks on the current source will be started, and vice versa 22 enable: true 23 24 #charset of DSN of source mysql/mariadb instance 25 # charset: '' 26 27 from: 28 host: 127.0.0.1 29 user: root 30 password: '123456' 31 port: 3306 32 33 #relay log purge strategy 34 #purge: 35 # interval: 3600 36 # expires: 24 37 # remain-space: 15 38 39 #task status checker 40 #checker: 41 # check-enable: true 42 # backoff-rollback: 5m 43 # backoff-max: 5m