From fbd6834dd599e0490314b7161e633093663f645a Mon Sep 17 00:00:00 2001 From: liuyebo <1515783401@qq.com> Date: Wed, 5 Jun 2024 16:52:51 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=B3=E9=97=ADsql=E6=89=93=E5=8D=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/mysql.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/mysql.py b/config/mysql.py index 6fd9a77..69931fe 100644 --- a/config/mysql.py +++ b/config/mysql.py @@ -16,7 +16,7 @@ PASSWORD = 'test9Root' DB_URL = f'mysql+pymysql://{USERNAME}:{PASSWORD}@{HOSTNAME}:{PORT}/{DATABASE}' # 是否打印执行的sql -SHOW_SQL = True +SHOW_SQL = False Engine = create_engine(DB_URL, echo=SHOW_SQL) Base = declarative_base(Engine)