From b47b0cb8b96ea798f0e65bd004bee197f317863a Mon Sep 17 00:00:00 2001 From: wangsiyuan <2392948297@qq.com> Date: Mon, 25 Dec 2023 16:43:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20config.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/config.py b/config.py index 3fa3b79..9ae6bad 100644 --- a/config.py +++ b/config.py @@ -1,4 +1,5 @@ # config.py +import pymysql # app secretkey SECRET_KEY = 'sUNiJ7QPulxrbmZD' @@ -6,9 +7,10 @@ SECRET_KEY = 'sUNiJ7QPulxrbmZD' # 数据库连接配置 DB_CONFIG = { 'host': '42.193.20.110', + 'port': 8006, # 注意端口是数字,不是字符串 'user': 'test', 'password': 'X7gq9lbxqpDGbyCi', 'database': 'test_db', 'charset': 'utf8mb4', - 'cursorclass': 'pymysql.cursors.DictCursor' + 'cursorclass': pymysql.cursors.DictCursor } \ No newline at end of file