# Using TiDB Lightning - Configuration

__*Using Lightning*__
__*Lightning configuration*__

```
[lightning]

# region-concurrency =

# log
level = "info"
file = "tidb-lightning.log"

[tikv-importer]
backend = "local"
sorted-kv-dir = "/mnt/ssd/sorted-kv-dir"

[mydumper]
data-source-dir = "/data/my_database"

[tidb]
host = "172.16.31.1"
port = 4000
user = "root"
password = ""
status-port = 10080

pd-addr = "172.16.31.4:2379"
```
-------------------------------------------------------------
sorted-kv-dir sets the temporary storage address of the sorted key-value pairs. The target path must be an empty directory, and the directory space must be larger than the size of the dataset to be imported.