I executed the command set global sql_mode = '';, can you tell me which configuration file it is stored in? Because I found that even if I restart the TiDB cluster, this parameter persists.
TiDB supports modifying the sql_mode system variable at the session or global scope.
Modifications to global scope variables will take effect on other servers in the cluster after being set, and the changes will remain effective after a restart. Therefore, you do not need to change the sql_mode value on each TiDB server.
Modifications to session scope variables will only affect the current session after being set, and the changes will disappear after a restart.
If you want to check the current sql_mode, simply use
The official documentation describes that “some variables with the GLOBAL scope will be persisted to the TiDB cluster,” which means they will be stored in TiKV. 系统变量 | PingCAP 文档中心