File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -130,7 +130,7 @@ uvicorn examples.db_management.app:app --host 127.0.0.1 --port 8000
130130### 1. 安裝依賴套件
131131
132132``` bash
133- pip install fastapi uvicorn sqlalchemy asyncmy redis pydantic PyJWT python-multipart
133+ pip install fastapi uvicorn sqlalchemy aiomysql redis pydantic PyJWT python-multipart
134134```
135135
136136### 2. 資料庫與Redis啟動
@@ -150,7 +150,7 @@ pip install fastapi uvicorn sqlalchemy asyncmy redis pydantic PyJWT python-multi
150150### 3. 配置環境變數 (` .env ` )
151151
152152```
153- DATABASE_URL=mysql+asyncmy ://user:password@localhost/db_management
153+ DATABASE_URL=mysql+aiomysql ://user:password@localhost/db_management
154154REDIS_URL=redis://localhost
155155JWT_SECRET_KEY=your_jwt_secret_key_here
156156```
Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ Implements core database logic using asynchronous SQLAlchemy:
131131Make sure to install required dependencies:
132132
133133``` bash
134- pip install fastapi uvicorn sqlalchemy asyncmy redis pydantic PyJWT python-multipart
134+ pip install fastapi uvicorn sqlalchemy aiomysql redis pydantic PyJWT python-multipart
135135```
136136
137137### 2. ** Setup and Run Redis**
You can’t perform that action at this time.
0 commit comments