diff --git a/embed/templates/scripts/run_tidb.sh.tpl b/embed/templates/scripts/run_tidb.sh.tpl index 84ff07a61a..7015db78c9 100644 --- a/embed/templates/scripts/run_tidb.sh.tpl +++ b/embed/templates/scripts/run_tidb.sh.tpl @@ -28,6 +28,6 @@ exec env GODEBUG=madvdontneed=1 bin/tidb-server \ --advertise-address="{{.AdvertiseAddr}}" \ --store="tikv" \ --path="{{template "PDList" .Endpoints}}" \ - --log-slow-query="log/tidb_slow_query.log" \ + --log-slow-query="{{.LogDir}}/tidb_slow_query.log" \ --config=conf/tidb.toml \ --log-file="{{.LogDir}}/tidb.log" 2>> "{{.LogDir}}/tidb_stderr.log"