From 6a4135f270ebb85e8c8939098b5a18f7da914aad Mon Sep 17 00:00:00 2001 From: mQueue Date: Sat, 25 Nov 2023 15:11:55 +0900 Subject: [PATCH] =?UTF-8?q?Chore:=20pip=20=EB=B6=88=ED=95=84=EC=9A=94?= =?UTF-8?q?=ED=95=9C=20=EC=9D=98=EC=A1=B4=EC=84=B1=20=EC=A0=9C=EA=B1=B0=20?= =?UTF-8?q?DB=20URL=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 커넥션에 필요한 URL 수정 및 불필요한 의존성 requirements.txt에서 제거 --- core/database.py | 2 +- requirements.txt | Bin 1804 -> 1776 bytes 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/core/database.py b/core/database.py index a72d910..936d089 100644 --- a/core/database.py +++ b/core/database.py @@ -4,7 +4,7 @@ from starlette.config import Config config = Config('.env') -DATABASE_URL = f"mariadb:///?User={config.get('USER')}&Password={config.get('PASSWORD')}&Database={config.get('DATABASE')}&Server={config.get('HOST')}&Port={config.get('PORT')}" +DATABASE_URL = f"mariadb+mariadbconnector://:{config.get('PASSWORD')}@{config.get('HOST')}:{config.get('PORT')}/{config.get('DATABASE')}" # Craate Engin for mariadb engine = create_engine(DATABASE_URL, echo=False) diff --git a/requirements.txt b/requirements.txt index b21a7eaf21c3bcf659c654a3ff3d5f705f1c64bf..65b468921ac61e3e3fe65be3893da5ab2ee5c90a 100644 GIT binary patch delta 12 TcmeC-`@p*)f_ZZZ^9*JHACLrS delta 36 mcmeys+rzgZf>}J5p^~APp^zbm!4?P&81%r{cyloGTxI~MM+gD{