From 385209c868f10493c6e3da66d312a43f7889b938 Mon Sep 17 00:00:00 2001 From: wu Date: Fri, 14 Apr 2023 00:07:05 +0800 Subject: [PATCH] fix the default host config for mysql --- backend/app/core/conf.py | 4 ++-- docker_conf.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/app/core/conf.py b/backend/app/core/conf.py index 7ebcbc0e..09181521 100644 --- a/backend/app/core/conf.py +++ b/backend/app/core/conf.py @@ -18,9 +18,9 @@ class Settings(BaseSettings): # Static Server STATIC_FILES: bool = False - # DB + # MySQL DB_ECHO: bool = False - DB_HOST: str = 'mysql' + DB_HOST: str = '127.0.0.1' DB_PORT: int = 3306 DB_USER: str = 'root' DB_PASSWORD: str = '123456' diff --git a/docker_conf.py b/docker_conf.py index 7ebcbc0e..59739d57 100644 --- a/docker_conf.py +++ b/docker_conf.py @@ -18,7 +18,7 @@ class Settings(BaseSettings): # Static Server STATIC_FILES: bool = False - # DB + # MySQL DB_ECHO: bool = False DB_HOST: str = 'mysql' DB_PORT: int = 3306