From c219ef494bd40d7ff32bc13eb58f2c36004b39cd Mon Sep 17 00:00:00 2001 From: Starry-OvO Date: Sat, 31 Aug 2024 18:51:53 +0800 Subject: [PATCH] chore: update docs --- docs/tutorial/cmd_handler_dev.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/docs/tutorial/cmd_handler_dev.md b/docs/tutorial/cmd_handler_dev.md index f5c46c1..07d501f 100644 --- a/docs/tutorial/cmd_handler_dev.md +++ b/docs/tutorial/cmd_handler_dev.md @@ -22,9 +22,8 @@ host = "127.0.0.1" port = 3306 user = "" # 填用户名 password = "" # 填密码 -db = "aiotieba" # 使用的数据库名,不填则默认为aiotieba -unix_socket = "/var/lib/mysql/mysql.sock" # 用于优化linux系统的本机连接速度,看不懂就不用填 -pool_recycle = 3600 # 填连接超时的秒数,需要与服务端保持一致,不填则默认为28800秒 +database = "aiotieba" # 使用的数据库名,不填则默认为aiotieba +max_inactive_connection_lifetime = 3600 # 填连接超时的秒数,建议与服务端保持一致,不填则默认为28800秒 ssl_cafile = "/path/to/your/cacert.file" # 用于加密连接的CA证书的路径 ``` @@ -54,4 +53,4 @@ mv examples/cmd_handler.py . ```shell nohup python -OO cmd_handler.py >/dev/null 2>&1 & -``` \ No newline at end of file +```