This commit is contained in:
2025-08-27 21:11:48 +08:00
parent fe77c5869e
commit 695ec0b000
2490 changed files with 458653 additions and 11 deletions

8
test_db.py Normal file
View File

@@ -0,0 +1,8 @@
from sqlalchemy import create_engine
#数据库连接测试脚本
uri = "mysql+pymysql://root:123456@127.0.0.1/food_db?charset=utf8mb4"
engine = create_engine(uri)
conn = engine.connect()
print("数据库连接成功!")
conn.close()