Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/backend/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,13 @@
* `your_project_user`: 你的应用程序将用来连接此数据库的用户名 (例如 `ecommerce_app_user`)。
* `your_strong_password`: 为上述用户设置一个安全的密码。

更新:为了能够创建本数据库所需要的trigger,需要为用户赋予额外权限。在上述 MySQL SHELL 中额外执行以下命令:

```sql
GRANT SYSTEM_VARIABLES_ADMIN ON *.* TO 'your_project_user'@'localhost';
FLUSH PRIVILEGES;
```

### 2. 创建 `.env` 配置文件

为了安全地管理数据库凭证和其他敏感配置,项目使用 `.env` 文件。此文件不应提交到版本控制系统 (如 Git)。
Expand Down