Log All SQL Statements in TiDB

Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: tidb所有的sql记录日志

| username: TiDBer_qQaS8qUC

I want to deploy SQL operation history viewing during installation.

| username: 啦啦啦啦啦 | Original post link

Learn about tidb_general_log

| username: 裤衩儿飞上天 | Original post link

Do you need to record the SQL executed during the cluster initialization process?