Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.Original topic: tidb在配置文件里如何永久修改wait_timeout 和 max_execution_time
[TiDB Usage Environment] Production Environment / Testing / PoC
Production Environment
[TiDB Version]
5.21
[Reproduction Path] What operations were performed that caused the issue
[Encountered Issue: Problem Phenomenon and Impact]
Currently, there are large SQL queries in the data warehouse that take a long time to execute. However, it is found that if the execution time exceeds 5 minutes, it will automatically disconnect. Although using set global takes effect, sometimes the cluster nodes restart, causing it to become invalid again. I want to permanently modify it in the configuration file. But according to the official documentation, in versions before 5.4, max_execution_time defaults to 0, which does not limit the execution time.
[Resource Configuration]
[Attachments: Screenshots / Logs / Monitoring]