Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.Original topic: innodb_lock_wait_timeout参数如何写死在配置文件里?

wait-for-lock-timeout
- The maximum time a pessimistic transaction waits for other transactions to release locks in TiKV. If it times out, an error will be returned to TiDB, and TiDB will retry locking. The maximum wait time for a statement to acquire a lock is controlled by
innodb_lock_wait_timeout
. - Default value: 1s
- Minimum value: 1ms
How can I set the innodb_lock_wait_timeout parameter permanently in the configuration file?
Currently, I see in the documentation that it can only be set using set global innodb_lock_wait_timeout
.