# Using the Sync-diff-inspector - Configuration Files

__*Using sync-diff-inspector*__
__*sync-diff-inspector configuration file*__

```
######################### Datasource config #########################
[data-sources]
[data-sources.mysql]
    host = "127.0.0.1"
    port = 3306
    user = "root"
    password = "mysql"

    route-rules = ["rule1"]

[data-sources.tidb]
    host = "127.0.0.1"
    port = 4000
    user = "root"
    password = "tidb"
```

-------------------------------------------------------------
######################### Datasource config #########################
[data-sources]
[data-sources.mysql]
    host = "127.0.0.1"
    port = 3306
    user = "root"
    password = "mysql"

    #（ (Optional) Use mapping rules to match multiple shards upstream, where rule1 and rule2 are defined in the Routes configuration column below
    route-rules = ["rule1"]

[data-sources.tidb]
    host = "127.0.0.1"
    port = 4000
    user = "root"
    password = "tidb"