# Using TiDB Lightning
+ Execution command example
```
$ tiup tidb-lightning -config tidb-lightning.toml 
```

+ Configuration file example (tidb-lightning.toml)
```
[lightning]
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"
```
-------------------------------------------------------------------------------------------
Run `tiup tidb-lightning`. If you start the program with `nohup` directly from the command line, it may abort due to the `SIGHUP` signal. It is recommended to put `nohup` in the script.
