feat: adjust db

This commit is contained in:
martsforever
2025-09-07 00:10:05 +08:00
parent 536b755bf3
commit b99f24354d
+1 -1
View File
@@ -52,7 +52,7 @@ async def check_database_connection():
print("Connecting Mysql...") print("Connecting Mysql...")
await conn.execute(text("select 1")) await conn.execute(text("select 1"))
# 打印连接成功信息及连接URL # 打印连接成功信息及连接URL
print("✅ Database connection successful:", DATABASE_URL) print("✅ MySql connection successful:", DATABASE_URL)
except Exception as e: except Exception as e:
# 打印连接失败信息及错误详情 # 打印连接失败信息及错误详情
print(f"❌ Database connection failed: {e}") print(f"❌ Database connection failed: {e}")