Commit 8e52e09c by yiling.shen

fix database connection in safe_import_patients.py use mysql service name and root user

parent a7ec0c86
Pipeline #3210 passed with stages
in 1 minute 37 seconds
......@@ -11,12 +11,12 @@ import json
import pymysql
from datetime import datetime
# 数据库配置
# 数据库配置 - 修复为Docker容器内的正确配置
DB_CONFIG = {
'host': 'localhost',
'port': 3307,
'user': 'callback_user',
'password': 'dev_password_123',
'host': 'mysql', # 使用Docker服务名
'port': 3306, # 使用标准MySQL端口
'user': 'root', # 使用root用户
'password': 'dev_password_123', # 使用正确的root密码
'database': 'callback_system',
'charset': 'utf8mb4'
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment