This commit is contained in:
eason 2026-01-21 13:59:02 +08:00
parent d96c1eb65f
commit 49a45cf46d
1 changed files with 2 additions and 2 deletions

View File

@ -9,13 +9,13 @@
- 确保本地 MySQL 运行,并创建数据库/账号(例):
```sql
CREATE DATABASE allm DEFAULT CHARACTER SET utf8mb4;
ALTER USER 'root'@'localhost' IDENTIFIED BY '13813746735';
ALTER USER 'root'@'localhost' IDENTIFIED BY '*******';
GRANT ALL PRIVILEGES ON allm.* TO 'root'@'localhost';
FLUSH PRIVILEGES;
```
- 启动前设置环境变量:
```bash
export DATABASE_URL=""
export DATABASE_URL="******"
```
3. 迁移(首次必跑)