Files
atlas-seller-kit/docs/guides/连接数据库.md
T
2026-09-04 10:27:29 +08:00

26 lines
946 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
## 在Cursor中连接数据库
可以。为这次手工维护 Ozon 币种,请在 SQLTools 用迁移专用账号连接:
| 字段 | 填写内容 |
|---|---|
| Connection name | `Atlas Local - Migrator` |
| Connection group | 可留空,或填 `Local` |
| Connect using | `Server and Port` |
| Server Address | `localhost` |
| Port | 根目录 `.env` 的 `POSTGRES_PORT`(通常是 `5432`) |
| Database | 根目录 `.env` 的 `POSTGRES_DB`(通常是 `atlas`) |
| Username | `atlas_migrator` |
| Use password | 选择 SQLTools Driver Credentials,并填根目录 `.env` 的 `ATLAS_MIGRATOR_PASSWORD` 值 |
不要使用 `atlas_app_login`:它给 API/Worker 用,权限不足以执行迁移或平台配置维护。
连上后,先执行:
```sql
SELECT code, name, capabilities
FROM atlas.platforms
WHERE code = 'OZON';
```
确认能读到 Ozon 后,再执行我前一条消息提供的事务 SQL。密码不要贴到聊天里。