# TiDB Binlog Usage - Deployment

__*TiDB binlog department*__
__*Open TiDB binlog*__


```
# toplogy file

pump_servers:
  - host: 172.31.0.232
drainer_servers:
  - host: 172.31.0.135
    config:
      syncer.db-type: "mysql"
      syncer.to.host: "172.31.0.135"
      syncer.to.user: "root"
      syncer.to.password: "mysql"
      syncer.to.port: 3306

#############################################

# parameter

server_configs.tidb.binlog.enable: true
server_configs.tidb.binlog.ignore-error: true
```

-------------------------------------------------------------
We need to include the Pump*Servers and drainer*Servers configuration in the topology file to identify the host IP. We need to configure the IP address, port, username, password, and database type of the target database in the topology file.
We need to enable Binlog for TiDB.